Reputation: 33
I use geocoding api check the address,but sometime it does not works. A place I can find it in google maps, such as,
https://www.google.com/maps?f=q&source=s_q&hl=en&geocode&q=United+States+Florida++33016+Hialeah+Gardens+8038+NW+103rd+St,Unit+39+Miami+Cores++
but it returns 'ZERO_RESULTS' when I use geocoding api to check the address,
https://maps.googleapis.com/maps/api/geocode/json?address=United+States+Florida++33016+Hialeah+Gardens+8038+NW+103rd+St,Unit+39+Miami+Cores++&sensor=true
{
"results" : [],
"status" : "ZERO_RESULTS"
}
Maybe the data between google map and geocoding api is diffrent. Or I use the geocoding api in a wrong way,format the address?
Upvotes: 1
Views: 597
Reputation: 4865
This should work now, since Issue 10585 has been fixed:
Query: United States Florida 33016 Hialeah Gardens 8038 NW 103rd St, Unit 39 Miami Cores Result: 8038 NW 103rd St, Hialeah Gardens, FL 33016, USA (source, API request)
The Geocoding API will find the same result as Google Maps, but return only the address of the place. If you need business names, phone numbers, etc. you'll need to use the Places API (Autocomplete or Search) instead.
However, I wouldn't count on Google Maps APIs to always understand your backwards query, your query terms are in the reverse than usual order. You may want to adhere to the following to get better results:
Upvotes: 1
Reputation: 32178
You try to find business Miami Cores Inc using Geocoding API.
Please note that Geocoding API works only with street addresses, all business results are out of the scope.
In case when your intention is to search a business, Places API is the best option.
E.g.
Upvotes: 2