Google Places API: Searching for names containing spaces

后端 未结 4 1935
不思量自难忘°
不思量自难忘° 2021-01-03 16:02

Is it possible to search for names containing spaces?

name: [\'Burger King|Subway\']  //fails
name: [\'McDonald|Subway|Chipotle\'] // works
<         


        
4条回答
  •  被撕碎了的回忆
    2021-01-03 16:32

    Use "+" if there is space inbetween the name -

    https://maps.googleapis.com/maps/api/place/search/json?location=33.4,-112.0&radius=5000&name=Burger+King&sensor=false&key=YourKey
    

提交回复
热议问题