Category : python

I have this function in python & node MAX_LATITUDE = 85.0511287798 def fn_project (self, p_lat, p_lng): v_d = math.pi / 180 v_max = self.MAX_LATITUDE v_lat = max(min(v_max,p_lat),-v_max) v_sin = math.sin(p_lat * v_d) v_x = self.EARTH_RADIUS * p_lng * v_d v_y = self.EARTH_RADIUS * math.log ((1 + v_sin) / (1 – v_sin)) / 2 return {"x":v_x ..

Read more