james075
james075

Reputation: 1278

Google search place api, places not found

Somes places are not found from google api, It used to return results before the last update but it does not anymore.

examples :

Pizza hut - france

Domino's pizza - france

In & out burger - los angeles

etc..

https://maps.googleapis.com/maps/api/place/search/json?sensor=false&location=34.029900,-118.255463&radius=5000&key=API_KEY&name=In-N-Out%20Burger

https://maps.googleapis.com/maps/api/place/search/json?sensor=false&location=48.847194,2.408152&radius=5000&key=API_KEY&name=Pizza%20Hut

https://maps.googleapis.com/maps/api/place/search/json?sensor=false&location=48.847194,2.408152&radius=5000&key=API_KEY&name=Domino's%20Pizza

Do you know why ?

Upvotes: 0

Views: 904

Answers (1)

user763648
user763648

Reputation: 88

Had the same issue but solved it this way:

For spaces: have to enclose the whole name in double quotes: %22name%20with%20spaces%22 For quotes: have to encode them as a space: Domino%20s

I tried it with your pizza hut example and got results back with my key

Upvotes: 0

Related Questions