MCPcopy
hub / github.com/django/django / geos

Method geos

django/contrib/gis/geoip2.py:225–230  ·  view source on GitHub ↗

Return a GEOS Point object for the given query.

(self, query)

Source from the content-addressed store, hash-verified

223 return data["latitude"], data["longitude"]
224
225 def geos(self, query):
226 "Return a GEOS Point object for the given query."
227 # Allows importing and using GeoIP2() when GEOS is not installed.
228 from django.contrib.gis.geos import Point
229
230 return Point(self.lon_lat(query), srid=4326)

Callers 1

test_cityMethod · 0.95

Calls 2

lon_latMethod · 0.95
PointClass · 0.90

Tested by 1

test_cityMethod · 0.76