MCPcopy
hub / github.com/django/django / lon_lat

Method lon_lat

django/contrib/gis/geoip2.py:215–218  ·  view source on GitHub ↗

Return a tuple of the (longitude, latitude) for the given query.

(self, query)

Source from the content-addressed store, hash-verified

213 }
214
215 def lon_lat(self, query):
216 "Return a tuple of the (longitude, latitude) for the given query."
217 data = self.city(query)
218 return data["longitude"], data["latitude"]
219
220 def lat_lon(self, query):
221 "Return a tuple of the (latitude, longitude) for the given query."

Callers 2

geosMethod · 0.95
test_cityMethod · 0.95

Calls 1

cityMethod · 0.95

Tested by 1

test_cityMethod · 0.76