Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从google api找不到某些地方,它曾经在上次更新之前返回结果,但现在不再返回。
例子 :
必胜客 - 法国
达美乐披萨——法国
进出汉堡 - 洛杉矶
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
你知道为什么吗 ?
有同样的问题,但通过这种方式解决了:
对于空格:必须将整个名称括在双引号中:%22name%20with%20spaces%22 对于引号:必须将它们编码为空格:Domino%20s
我用你的必胜客例子试了一下,用我的钥匙得到了结果