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
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