我想过滤特定City的Google Places API结果。过滤器必须排除,而不是排序。我知道我可以指定location
和radius
,但这还不够,因为这只会优先搜索结果。如何过滤City Places的Google Places API
我希望的过滤级别与Country
可用的级别相同。
我urlCall
看起来是这样的:
https://maps.googleapis.com/maps/api/place/autocomplete/json?components=country:pt&types=address&input=INPUT&language=en-US&key=MY_KEY
我在做什么的权利知道的是通过JSON结果迭代和评估,如果有与城市名称的term
。
提前致谢!
添加'&administrative_area_level_3 = CITY'的链接没有任何过滤的结果 – dordio
看起来像当前的Web服务只支持国家的筛选。 –