Return a GEOS Point object for the given query.
(self, query)
| 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) |