示例#1
0
 def distance_from(self, latitude, longitude, **kwargs):
     return distance_on_unit_sphere(
         self.latitude,
         self.longitude,
         latitude,
         longitude,
         **kwargs)
示例#2
0
 def is_within_radius_of(self, radius, latitude, longitude, **kwargs):
     return distance_on_unit_sphere(
         self.latitude,
         self.longitude,
         latitude,
         longitude,
         **kwargs
     ) <= radius
示例#3
0
 def is_within_radius_of(self, radius, latitude, longitude, **kwargs):
     return distance_on_unit_sphere(self.latitude, self.longitude, latitude,
                                    longitude, **kwargs) <= radius
示例#4
0
 def distance_from(self, latitude, longitude, **kwargs):
     return distance_on_unit_sphere(self.latitude, self.longitude, latitude,
                                    longitude, **kwargs)