Geocoding addresses with googleway: incoherent results

I am trying to geocode addresses on Google Maps using the google_geocode function from the googleway package in R. I am using a key obtained from Google that allows me to overcome the 2500 / day limit (and charge a fee for this). I have different types of problems, mainly due to the way the addresses that I use are written, but there is one problem I would like to ask here: how is it possible that sometimes I do not receive any requests using googe_geocode, but if am I typing the same address bar at http://www.google.com/maps/ returns the result?

My example:

address="AVENDAÑO, 30-32 VITORIA-GASTEIZ 01008, ES"
# the address I want to geocode. Its format is "street, number, city postcode, country" in a single string.
google_geocode(address=address,key=mykey) # I write the right key as mykey.
# I get no results:
$results
list()
$status
[1] "ZERO_RESULTS"

But if you look for the exact same address bar in Google Maps, I get the right place (showing that it is Abendaño Kalea in Vitoria, Spain):

https://www.google.com/maps/place/Abenda%C3%B1o+Kalea,+30,+01008+Vitoria-Gasteiz,+Araba/@42.8451894,-2.6855022,17z/data=!3m1!4b1!4m5!3m4!1s0xd4fc213d775d83d:0xc2a5f2ffa8721c2a!8m2!3d42.8451855!4d-2.6833135

- , ? , Google Maps Google Geocoding API ? ,

+4
2

, Google "ABENDAÑO, 30-32 VITORIA-GASTEIZ 01008, ES", B V. , , , , Google .

:

, .

: https://developers.google.com/maps/faq#geocoder_queryformat

Correos.es , ABENDAÑO

enter image description here

:

https://maps.googleapis.com/maps/api/geocode/json?address=ABENDA%C3%91O%2C%2030-32%20VITORIA-GASTEIZ%2001008%2C%20ES&key=YOUR_API_KEY

:

https://google-developers.appspot.com/maps/documentation/utils/geocoder/#q%3DABENDA%25D1O%252C%252030-32%2520VITORIA-GASTEIZ%252001008%252C%2520ES

, !

+1

, - . "". :

string <- "AVENDAÑO, 30-32 VITORIA-GASTEIZ 01008, ES"
Encoding(string) <- "UTF-8"
google_geocode(string, key = key)

Google , API.

+1

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


All Articles