Welcome! Log In Create A New Profile

Advanced

Re: Handling cities with the same name using the GeoIP module

Maxim Dounin
November 15, 2021 10:14AM
Hello!

On Mon, Nov 15, 2021 at 08:46:29AM -0500, YvorL wrote:

> Hi Maxim,
>
> I really appreciate your response!
> I just realized that in the background I'm converting the current GeoIP2
> database to legacy format (https://github.com/sherpya/geolite2legacy).
>
> As I mentioned before, when I logged $geoip_region, I got a full string
> instead of 2 symbols as it's defined in the official documentation. Is this
> because I'm not using the legacy database?

Most likely.

> One last question :) Sometimes I got "00" instead of the region, I reckon
> that means that the IP address (e.g., 107.178.232.174 - Google app IP) isn't
> in the database file I'm using, right?

The "00" seems to be the default used by the converter:

https://github.com/sherpya/geolite2legacy/blob/master/geolite2legacy.py#L262

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Handling cities with the same name using the GeoIP module

YvorL November 12, 2021 09:21AM

Re: Handling cities with the same name using the GeoIP module

Maxim Dounin November 12, 2021 09:58AM

Re: Handling cities with the same name using the GeoIP module

YvorL November 14, 2021 12:54PM

Re: Handling cities with the same name using the GeoIP module

Maxim Dounin November 14, 2021 04:26PM

Re: Handling cities with the same name using the GeoIP module

YvorL November 15, 2021 08:46AM

Re: Handling cities with the same name using the GeoIP module

Maxim Dounin November 15, 2021 10:14AM

Re: Handling cities with the same name using the GeoIP module

YvorL November 15, 2021 10:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready