maxmind / GeoIP2-php

PHP API for GeoIP2 webservice client and database reader
https://maxmind.github.io/GeoIP2-php/
Apache License 2.0
2.33k stars 276 forks source link

GeoIp2 and legacy format #60

Closed Ragazzo closed 8 years ago

Ragazzo commented 8 years ago

In legacy format we had $location->region attribute, is this attribute represented in new GeoIp2 client? If compared to mostSpecificSubdivision i would not say it is the same, because identities (id) are not the same as for legacy.

oschwald commented 8 years ago

FIPS regions, which are used in GeoIP Legacy, are not included in GeoIP2. GeoIP2 only includes ISO subdivisions. See this page for a list of differences between the two formats.

Ragazzo commented 8 years ago

Ok, we figured it out and now use them, anyway thank you

stafot commented 5 years ago

Ok, we figured it out and now use them, anyway thank you

@Ragazzo Could you provide more info? Did you find a way to use regions or you extracted region info from subdivision?