How to get json response data in custom language?

Hi folks!
How can I get IP + address data base on my localization?
I’m building Chinese app so I can’t use English text.

Thanks in advance!

Hey,

We do not provide location data in different languages, but you can use the geonames.org data to get custom language support for location data.

I did a small project using geoname’s altname database, which you can explore.

IP to Geolocation database.

  • In the repo, download the zip file geoname_alt_names.zip
  • Inject the CSV file in a database software (postgres, sqlite, pandas, or anything) from the zip file.
  • From the IP to Geolocation database, get the geoname_id and look up the different translations available for a particular geographic point

image

Location API service or Free Databases

  • In this instance, you have to use the raw alternateNamesV2.zip (download link) from Geonames.org.
  • From here you have to injest the database into database software.
  • From IPinfo’s data you have to look up the translation from geographic point using a combination of city, region and country code and then get the translated version of that.

You can invest some time into figuring out a solution. I explored geonames.org’s dataset and our data in this Python Notebook. You should be able to build a solution based on that.

:link: https://github.com/abdullahdevrel/geoname_altname/blob/main/processing_geonames_altnames.ipynb