Ejemplo n.º 1
0
 def get_direction_base(self, location_base, direction=0, radius=0.5):
     """
     """
     p = PointOnEarth(location_base['lng'], location_base['lat'])
     location = p.get_location(direction, radius)
     if location:
         return location
Ejemplo n.º 2
0
 def get_direction_base(self, location_base, direction=0, radius=0.5):
     """
     """
     p = PointOnEarth(location_base['lng'], location_base['lat'])
     location = p.get_location(direction, radius)
     if location:
         return location
Ejemplo n.º 3
0
 def get_border(self, center):
     p = PointOnEarth(center['lng'], center['lat'])
     border = []
     for d in xrange(0, 360, 90):
         border.append(p.get_location(d, 8))
     # print border
     return border