Using Multiple Types In Google Places

偶尔善良 提交于 2021-02-05 12:31:01

问题


I need to set multiple types in the URL

https://maps.googleapis.com/maps/api/place/nearbysearch/json?sensor=true&key=API_KEY&location=LAT,LNG&rankby=distance&types=[]

without using the parameter key "keyword"


回答1:


Unfortunately according to Google's places API this is not yet supported and there is no consistent work around. The only way to truly achieve multiple types is to have multiple API calls.

From the google API on supported types.

... Only one type may be specified (if more than one type is provided, all types following the first entry are ignored)



来源:https://stackoverflow.com/questions/55875311/using-multiple-types-in-google-places

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!