Reputation: 31313
This is a followup question to another I recently had about the Google Maps API.
The following request returns zero results...
However, from http://maps.google.com the following address locates correctly...
801 Baltimore Street, Hanover, PA
From the previous question the answer was because the result returned from maps is a "place" and not an "address".
My new question is how can you tell maps is returning a "place" vs and "address"? Is there something in the URL or the response that gives this away?
Upvotes: 1
Views: 487
Reputation: 3085
geocodezip:
thanks for the response.
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:
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
Reputation: 161334
If you look at the response on Google Maps, notice the "3 reviews", that is a places entry. The way the entry reads also indicates it to me:
Giant
801 Baltimore St, Hanover, PA
(717) 632-6673 · giantfoodstores.com
3 reviews
It seems that the link above doesn't work the first time, but if you click on the "search" it finds it.
Upvotes: 1