The best way to organize GeoIP on the site?Asked by anne bunfill
Yes, and in fact there are a lot of questions on this topic:
Why the web giants do not provide any API for everyone? (if they do, I would appreciate links)
How reliable is this method of determining the user's position at the moment?
Are there any other ways of geolocation on the site? (we do not take into account the self-evident "Point by yourself" and a very young opportunity to ask the browser)
Can you trust HTTP_ACCEPT_LANGUAGE if you only need to divide the site into a couple of languages?
4. You can, but still allow the user to change the site language
For one of my latest projects, I used - ipinfodb.com/ip_location_api.php, a fairly accurate and up-to-date base, screwed up caching to reduce the number of requests and while it works like a clock.
Is there a mechanism for the flow of IP pools from one location to another?
How realistic does this often happen?
& gt; ipinfodb.com/ip_location_api.php
Did you check the correctness of the definition? Not exactly buggy, does not send Muscovites to Syktyvkar, if only sometimes? From my own experience I noticed, having tried a number of different services, that no, no, yes, and there are such unpleasant failures. - ken cleary
Well, my provider recently purchased a new pool of IP addresses and for quite a long time almost all services showed that I was in the States.
& gt; Was the definition correct?
Tested on an experimental group of 10 people from different regions of Russia and Ukraine. - rob krueger
I became interested in ipinfodb.com (according to the description of the API it seems to be convenient), checked my IP and threw a link to three comrades. The result is amazing: 4 errors out of 4. Accuracy is zero percent.
Did you really use this base in a real project? Or is it their only trouble with Russia? - bethany whiteley
But on Habré they wrote that he did not work - Ashmanov repented by moving.
We use both, if the first one doesn’t define the second, it’s obvious to us that the one who didn’t come from the CIS or Russia will understand the answer in English.
Whose base really yuzat? - anthony lavadera
Good for having a system solution. - amanda meuwissen
Plus they have a very simple and convenient API.