【问题标题】:Google Places API not returning any results for IndiaGoogle Places API 未返回印度的任何结果
【发布时间】:2012-02-28 06:38:48
【问题描述】:

https://maps.googleapis.com/maps/api/place/search/json?location=28.635704,77.224982&radius=50000&types=restaurant&language=en&name=&sensor=false&key=[key]

我一直在尝试查找 Google Places API 3 以获取德里的餐馆列表,但到目前为止我还没有运气。有没有人尝试过。它在美国的坐标显示良好的结果,但在德里没有?

【问题讨论】:

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


    【解决方案1】:

    我想问题在于这些地方的所有者应用的分类。当我在谷歌地图上搜索“restaurant delhi”时,我得到了很多餐馆,但没有一个被归类为“restaurant”,它是住宿、餐馆-印度、餐馆-非素食或其他,但从来没有餐厅

    而不是请求 types restaurant 搜索 name restaurant ,你会得到一堆结果。

    当您查看这些结果时,您会发现,大多数结果的 types 被设置为 "establishment" ,而不是 "restaurant"

    【讨论】:

    • 您也可以设置keyword=restaurant - 关键字是“一个要与所有可用字段匹配的词,包括但不限于姓名、类型和地址,以及客户评论和其他第三方-派对内容。”
    猜你喜欢
    • 1970-01-01
    • 2019-02-04
    • 1970-01-01
    • 1970-01-01
    • 2014-01-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多