S
S
Sergey Boldyrev2010-09-06 13:39:44
Geolocation
Sergey Boldyrev, 2010-09-06 13:39:44

Best way to organize GeoIP on a website?

Indeed, there are many questions on this topic:

  1. Why don't the giants of the web provide any API for everyone? (if they do, I would be grateful for the links)
  2. How reliable is this method of determining the user's location at the moment?
  3. Are there other ways of geolocation on the site? (not taking into account the self-evident "Specify yourself" and the very young opportunity to ask the browser)
  4. Can HTTP_ACCEPT_LANGUAGE be trusted if all you want to do is split your site into a couple of languages?

Answer the question

In order to leave comments, you need to log in

10 answer(s)
A
Alexey, 2010-09-06
@alexxxst

geolite.maxmind.com/

V
Vladimir Sokolovsky, 2010-09-06
@inlanger

2. Depends on the relevance of the base of the service you have chosen
4. It is possible, but still give the user the opportunity to change the language of the site
For one of my latest projects, I used - ipinfodb.com/ip_location_api.php to reduce the number of requests and so far it works like clockwork.

S
SMiX, 2010-09-06
@SMiX

Gears geolocation API

A
ahilles, 2010-09-06
@ahilles

ipgeobase.ru/ I use this service.

M
maashaa, 2010-09-06
@maashaa

There is also a Russian www.ashmanov.com/tech/geo
But on Habré they wrote that he did not work - Ashmanov repented of the move.

M
Maxima, 2010-09-06
@Maxima

ipgeobase.ru Works only for Russia or the CIS, and ipinfodb.com/ip_location_api.php works with the world but the answers will be in English.
We use both, if the first one has not identified, we ask the second one, it is obvious to us that those who did not come from the CIS or Russia will understand the answer in English.

B
BreathLess, 2010-09-06
@BreathLess

Debians have the geoip-database package, and PHP bindings, the php-geoip package.

A
Andrey, 2010-09-06
@shinyweb

Quite (if not the most) extensive database at ip2location.com , though free - only a small part of it. The subscription cost me $199, which is not cheap in principle, but for large projects where location accuracy is important, this is a good option.

N
NikitaPetrov, 2015-03-14
@NikitaPetrov

Recently, the ipgeobase.ru service has become buggy (in terms of a long freeze when making requests to this service, so that the search engines began to think that my site was not working), I had to look for a new solution. The only decent free solution at the moment is geoplugin.com

I
I.CaR Soft, 2016-01-07
@I_CaR

geoiplookup.net - painfully accurately determines the location.
Plus they have a very simple and convenient API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question