M
M
mydarck2016-08-15 10:10:36
PHP
mydarck, 2016-08-15 10:10:36

GeoIp - how to determine the visitor's city?

Hello. There was a need to determine the city of the visitor on one of the sites. Useful in google, there is the last article from the 13th year. And some of the links don't work anymore. What do you use in 16th to determine the user's location?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
H
Hazrat Hajikerimov, 2016-08-15
@hazratgs

For these purposes, I used the Yandex.Maps API + dadata.ru

V
Valeriyat, 2016-12-25
@Valeriyat

You can determine the user's location by IP using DaData

D
D', 2016-08-15
@Denormalization

>What do you use in year 16 to determine user's location?
The same as in 2015 and 2014 and in 2010 and 2008.
MaxMind to determine by IP, or Google geocoding to determine by coordinates.

N
Nurlan, 2016-08-15
@daager

We use IpGeoBase and update the crown once a week.

Z
zapimir, 2016-08-15
@zapimir

For client-side definition in JS, you can use the Sypex Geo API and get the data in JSON or JSONP. For PHP, you can download the database there, or also access the API from PHP so as not to bother with updates. What specifically to choose depends, in principle, on the volumes, how many IPs you need to determine.

E
evgenij85, 2018-08-31
@evgenij85

Alternatively, you can use the Geolocation service

W
Whois, 2019-02-04
@andrey_id123456789

I was also looking for a similar service for a long time, I stopped at https://ipwhois.io/

E
Evgeny Nikolaev, 2019-12-05
@nikolaevevge

nikolaevevgeGeoIp: blog.ivru.net/?id=82
The library is suitable for Joomla Wordpress Bitrix theoretically any version. CMS is determined automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question