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

List of region codes and names #112

Closed sgiehl closed 6 years ago

sgiehl commented 6 years ago

For GeoIP Legacy you had provided a csv (https://www.maxmind.com/download/geoip/misc/region_codes.csv) to be able to get the region name based on the region code. As GeoIP2 now uses ISO codes for all regions, this list can't be used anymore. Do you provide a new list with those mappings for GeoIP2?

oschwald commented 6 years ago

We don't supply this data ourselves beyond what is in the database file, which does include the names for a lookup. If you want a straight mapping between subdivision ISO codes and names, I would suggest looking at GeoNames.

sgiehl commented 6 years ago

Ok. Thanks for the answer. One last question. Might all region codes included in GeoLite2-City-Locations-en.csv be returned? If seen that the old region codes for France are (still) included. Is that only for "backwards compatibility" or might they still be returned?

oschwald commented 6 years ago

If they show up in that CSV, they are still returned. I would suggest contacting support@maxmind.com about data quality issues.