Region Offset Using Google Maps

My users, who can be located anywhere in the world, will be represented by a text box in which they can enter their address. In most cases, I assume that they will be physically in the same country as any address they dial.

I would like to help the Google Map API make better guesses by doing an area offset . Is there any way to tell Google about the shift of the region from where the request is made? Or how can I provide this information to Google when I make a call to a web service (for example, converts an IP address to country information)?

Thank.

+3
source share
2 answers

The last time I checked, the "area offset" for both the client side and the server-side Google Geocoder was not reliable. Check out this post from April last year (tested again right now, and the problem persists):

The most reliable way I've found is to add a country at the end of the address. Therefore, if the user is in the UK and dials “Oxford Street London”, you must add “, United Kingdom” to the geocoding address.

, . API @ , IP-to-location. MaxMind GeoLite City, , , 99,5% .

+6

API- HTML5 Geolocation, Dive Into HTML5. . ( ) - PHP Geo IP.

0

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


All Articles