📜 ⬆️ ⬇️

Link to API VKontakte added to Sypex Geo

In Sypex Geo, at the request of workers, a link has been added to the IDs of cities, regions and countries that are used in the VKontakte API .

What is and why you need Sypex Geo


Sypex Geo is one of the solutions in the field of geolocation - determining the geographic location (country, city, region) of a visitor based on the IP address. A proprietary open binary database format is used, and the REST API web service is also available, allowing you to always use the latest databases. Sypex Geo uses its own databases, which are regularly updated as the location of IP addresses changes (free databases are updated twice a month, commercial databases are updated 4 times a month).

Examples of using geolocation



Information about the location of the visitor by IP-address


Now the following information about your site visitor is available in Sypex Geo databases.
')
For example, the JSON result in the REST API:

"ip":"95.71.254.**", "city": { //    "id":515003, // ID   GeoNames "lat":51.7727, //  "lon":55.0988, //  "name_ru":"", //    "name_en":"Orenburg", //    "okato":"53401", //   "vk":106, // ID   API  "population":550204 //     GeoNames }, "region": { //    "id":515001, // ID   GeoNames "lat":52, //  "lon":56, //  "name_ru":" ", //    "name_en":"Orenburgskaya Oblast'",//    "iso":"RU-ORE", //   ISO 3166-2 "timezone":"Asia/Yekaterinburg", //   "okato":"53", //    "auto":"56", //    "vk":1146712, // ID   API  "utc":6 //     UTC }, "country": { "id":185, // ID  "iso":"RU", //   ISO 3166-2 "continent":"EU", //  "lat":60, //  "lon":100, //  "name_ru":"", //    "name_en":"Russia", //    "timezone":"Europe/Moscow", //    "area":17100000, //     GeoNames "population":140702000, //     GeoNames "capital_id":524901, // ID   GeoNames "capital_ru":"", //    "capital_en":"Moscow", //    "cur_code":"RUB", //   "phone":"7", //    "neighbours":"GE,CN,BY,UA,KZ,LV,PL,EE,LT,FI,MN,NO,AZ,KP", //  "vk":1, // ID   API  "utc":4 //      }, "error":"", //     REST API "request":-6 //    REST API 

In the future we plan to add information on telephone codes and indexes of cities.

Those wishing to test Sypex Geo can be on the demo page . Not all information is shown on the demo (for greater clarity), to get complete information on IP, you can use the REST API (shows information about your IP in JSON format).

Source: https://habr.com/ru/post/239613/


All Articles