Maps search api won't show some results - google-maps

i'm using google maps search api to search for an existing place but i don't get any result. If i search the same query on google maps or google street view, i can find the place.
Query: Rialto Luxury Studios
Maps result: https://www.google.it/maps/place/Rialto+Luxury+Studios/#45.4378195,12.3367443,18z/data=!4m8!1m2!2m1!1sRialto+Luxury+Studios!3m4!1s0x477eb1dbca09ab15:0x98e130dbd1f6fbf7!8m2!3d45.4377321!4d12.336083
Api call: https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Rialto+Luxury+Studios&key=[xxxxxxxxxxxx]
Is there anything i'm doing wrong?
Thx

Why are you using autocomplete? If you are just searching for place details then textsearch is probably the way to go.
A textsearch for 'Rialto+Luxury+Studios' returns the result you want as the second result.
Adding some more detail, a textsearch for 'Rialto+Luxury+Studios+Ponte+di+Rialto'
returns the result you want as the first result.
If you can't find a place, a nearbysearch is usually a good way to go: location=45.437670,%2012.336059&radius=1000&keyword=rialto+luxury
I do not know why autocomplete isn't showing your result, sorry, can't help you there.

Related

Place Autocomplete API delivers fewer results than Google Maps

I use the Place Autocomplete API (https://maps.googleapis.com/maps/api/place/autocomplete) trying to get the same results as in Google Maps. Until a few days ago the result where pretty the same, but now they differ significantly: In Google Maps I get the same results as before, but in Place Autocomplete API sometimes I don't get even one result anymore.
Example: Using https://maps.googleapis.com/maps/api/place/autocomplete/json?input=wanko%20ainring&language=de&components=country:de&key=mykey I get zero results. Typing in "wanko ainring" in Google Maps I get one result with an address.
Has something internally changed in the Place Autocomplete API or am I doing something wrong?
Or maybe I should generally ask: How do I get the same results in Place Autocomplete API as in Google Maps?
Thanks for any comment.

Targeting using Criteria ID

Maybe you know if and how I can use Criteria ID taken from Adwords APi
Here to get targeted location and put it on map?
Thanks
I have not seen anyone attempt this before, however performing a geocode on the Canonical Name column would provide you with the desired result it seems?
Geocoding docs available here: https://developers.google.com/maps/documentation/geocoding/

Why do some results show up in Google Maps but not in Places API results?

Ok, so when I search for "Dobry" on Google Maps I get this result: http://maps.google.de/maps/place?q=dobry&hl=de&cid=15804306880695571087
But when I try to retrieve that same restaurant from the Places API, https://maps.googleapis.com/maps/api/place/search/json?location=48.1321091,11.366&radius=500&types=establishment&sensor=false&name=Dobry&key=ABCDEF1234, I get ZERO_RESULTS.
How can I retrieve the id (not cid) Tag of that establishment? And why do the results differ? The lat/long location should be right. What am I doing wrong?
The search box uses the Query Autocomplete endpoint, it will give the same result, use the location parameter to bias the results

How to get list of restaurants by using google maps. I want to get more than 20. Is it possible?

How to get list of restaurants by using google maps. I want to get more than 20. Is it possible?
Btw, google places impossible to use, because in my case Ukrain Donetsk city doesn't show any restaurants in google places. But when I use simple google maps it shows all restaurants.
How to get this list of restaurants which google maps shows.
I.e. like this information:
Restaurant name and address.
Thank you very much.
Regards, Sergey.
It's not possible to use more than 20 results, and it's highly probable that we don't have proper categorised data for your area.
Try using the keyword parameter, you may have more luck. Something like this: https://maps.googleapis.com/maps/api/place/search/json?location=37.422262,-122.169261&radius=500&keyword=restaurant&sensor=false&key=...

How to show more than one places on google maps?

Using the public google maps site, how can I show multiple locations on a map. I want to do this using the query string. For example, I might want to show Portland, OR and Seattle, WA.
http://maps.google.com/?q=Portland,%20OR%20AND%20Seattle,%20WA
I don't think it's possible on the Google Maps site, so you probably have to use the API and build a web page with two maps on it, each showing the location depending on the query. You might also want to look at the Geocoding API if you are going with that.