teddy teddy
teddy teddy

Reputation: 3085

google maps web finds an address/place, but neither places API nor geocoding API finds it

(a repost of the answer at Google Maps "place" vs "address" )

assuming that the google maps web utilizes the places API, I tried to get the same result from places API.

for this address: 526+Kawailoa+Road,Kailua,Oahu,HI+96734 google maps does find the correct location. but geocoding API fails, so I try the places API:

curl -v 'https://maps.googleapis.com/maps/api/place/textsearch/json?query=526+Kawailoa+Road,Kailua,Oahu,HI+96734&key=MY_API_KEY'

it returns a empty list. so why does the maps web page finds it but neither places API nor geocoding API finds it?

Thanks Yang

Upvotes: 0

Views: 120

Answers (1)

geocodezip
geocodezip

Reputation: 161404

The "Oahu" is confusing the geocoder (and the places API).

If I use "526+Kawailoa+Road,Kailua,HI+96734" with the geocoder, I get a result

If I use that address with the places API, I also get a result

Upvotes: 1

Related Questions