What this solution does
Module for determining the city by IP address based on the local Sypex Geo database. The database is automatically updated once a week via a background agent. The module operates without external API calls as all data is stored locally.
The method \Awz\IpTown\Geo::getData($ip="") accepts the visitor's IP address by default. It returns an \Awz\IpTown\CityResult object, which is a child of \Bitrix\Main\Result.
Available object methods:
getCityId() — city ID in the database
getCityLat() — latitude
getCityLon() — longitude
getCityRu() — city name in Russian
getCityEn() — city name in English
getRegionId() — region ID in the database
getRegionIso() — region code
getRegionRu() — region name in Russian
getRegionEn() — region name in English
getCountryId() — country ID in the database
getCountryIso() — country code
getCountryRu() — country name in Russian
getCountryEn() — country name in English
General iT can install and configure this module and check how it works on your website.