【问题标题】:Google Places API search by city againGoogle Places API 再次按城市搜索
【发布时间】:2013-09-09 18:51:03
【问题描述】:

我想搜索纽约的所有咖啡馆和餐馆。当然,我可以使用文本搜索,这里推荐 - Google Places API Search for Keyword and City

但是如果我提出这样的要求 https://maps.googleapis.com/maps/api/place/textsearch/json?query=cafe+New+York+food&sensor=false&key=MY_KEY

我得到的第一个元素是

"formatted_address" : "316 Victoria Avenue, Chatswood NSW, Australia",

真的没有办法按城市过滤数据吗?这个数据存在于地址中,为什么没有按城市过滤的好方法,只能通过关键字?

【问题讨论】:

    标签: google-maps google-maps-api-3 google-places-api


    【解决方案1】:

    【讨论】:

    • 不理想,因为在指定的半径范围内可以定位更多的城市。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-14
    • 1970-01-01
    • 1970-01-01
    • 2019-01-27
    • 2013-05-07
    • 2012-05-14
    • 1970-01-01
    相关资源
    最近更新 更多