Now I do this:

jQuery.getJSON("http://freegeoip.net/json/", function(data) { var city = data.city; var lat = data.latitude; var lng = data.longitude; jQuery('#curr_location').html(city); }); 

Now as described above. But I get the city in Latin. Is there a way or another API for getting a city in Cyrillic?

    2 answers 2

    This service, as follows from the description, uses the database maxmind.com . They have a breakdown by language, but you cannot choose the language exactly. Options:

    1. Connect to maxmind.com on your own (or you can download the databases with the necessary localization to your server and work with them directly)
    2. Use SypexGeo (there also has an API, and the ability to work with local databases)
    3. Choose some other service :-)

      Here pv service http://ipgeobase.ru:7020/geo?ip=88.200.175.133

       <ip-answer> <ip value="88.200.175.133"> <inetnum>88.200.172.0 - 88.200.175.255</inetnum> <country>RU</country> <city>Тольятти</city> <region>Самарская область</region> <district>Приволжский федеральный округ</district> <lat>53.535561</lat> <lng>49.409569</lng> </ip> </ip-answer>