2121SSL
2222---
2323
24- Requests to the GeoIP2 Precision web service are always made with SSL.
24+ Requests to the web service are always made with SSL.
2525
2626"""
2727
@@ -219,8 +219,8 @@ class AsyncClient(BaseClient):
219219 The following keyword arguments are also accepted:
220220
221221 :param host: The hostname to make a request against. This defaults to
222- "geoip.maxmind.com". In most cases, you should not need to set this
223- explicitly .
222+ "geoip.maxmind.com". To use the GeoLite2 web service instead of GeoIP2
223+ Precision, set this to "geolite.info" .
224224 :param locales: This is list of locale codes. This argument will be
225225 passed on to record classes to use when their name properties are
226226 called. The default value is ['en'].
@@ -276,7 +276,7 @@ def __init__( # pylint: disable=too-many-arguments
276276 self ._proxy = proxy
277277
278278 async def city (self , ip_address : IPAddress = "me" ) -> City :
279- """Call GeoIP2 Precision City endpoint with the specified IP.
279+ """Call City endpoint with the specified IP.
280280
281281 :param ip_address: IPv4 or IPv6 address as a string. If no
282282 address is provided, the address that the web service is
@@ -305,7 +305,10 @@ async def country(self, ip_address: IPAddress = "me") -> Country:
305305 )
306306
307307 async def insights (self , ip_address : IPAddress = "me" ) -> Insights :
308- """Call the GeoIP2 Precision: Insights endpoint with the specified IP.
308+ """Call the Insights endpoint with the specified IP.
309+
310+ Insights is only supported by GeoIP2 Precision. The GeoLite2 web
311+ service does not support it.
309312
310313 :param ip_address: IPv4 or IPv6 address as a string. If no address
311314 is provided, the address that the web service is called from will
@@ -375,8 +378,8 @@ class Client(BaseClient):
375378 The following keyword arguments are also accepted:
376379
377380 :param host: The hostname to make a request against. This defaults to
378- "geoip.maxmind.com". In most cases, you should not need to set this
379- explicitly .
381+ "geoip.maxmind.com". To use the GeoLite2 web service instead of GeoIP2
382+ Precision, set this to "geolite.info" .
380383 :param locales: This is list of locale codes. This argument will be
381384 passed on to record classes to use when their name properties are
382385 called. The default value is ['en'].
@@ -434,7 +437,7 @@ def __init__( # pylint: disable=too-many-arguments
434437 self ._proxies = {"https" : proxy }
435438
436439 def city (self , ip_address : IPAddress = "me" ) -> City :
437- """Call GeoIP2 Precision City endpoint with the specified IP.
440+ """Call City endpoint with the specified IP.
438441
439442 :param ip_address: IPv4 or IPv6 address as a string. If no
440443 address is provided, the address that the web service is
@@ -460,7 +463,10 @@ def country(self, ip_address: IPAddress = "me") -> Country:
460463 )
461464
462465 def insights (self , ip_address : IPAddress = "me" ) -> Insights :
463- """Call the GeoIP2 Precision: Insights endpoint with the specified IP.
466+ """Call the Insights endpoint with the specified IP.
467+
468+ Insights is only supported by GeoIP2 Precision. The GeoLite2 web
469+ service does not support it.
464470
465471 :param ip_address: IPv4 or IPv6 address as a string. If no address
466472 is provided, the address that the web service is called from will
0 commit comments