【问题标题】:How to Use Google Places API to search for “apartments near me”如何使用 Google Places API 搜索“我附近的公寓”
【发布时间】:2019-01-15 04:15:12
【问题描述】:

在谷歌搜索框中,我输入“我附近的公寓”。 如何使用 Places API 返回相同的结果集?

我尝试了以下方法,但得到的结果略有不同

https://maps.googleapis.com/maps/api/place/textsearch/json?query=aparments+near+me&location=30.423648,-97.683151&rankby=distance&key=API_KEY

使用的纬度/经度值对应于我使用的“靠近我”的位置

如果能帮助我获得相同的结果,我将不胜感激

【问题讨论】:

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


    【解决方案1】:

    【讨论】:

    • 感谢您的回答,但我正在查看地点 API,但没有看到名为“公寓”的地点类型 - developers.google.com/places/supported_types 我曾考虑使用“real_estate_agency”,但结果与使用问题中的 URL
    猜你喜欢
    • 1970-01-01
    • 2020-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 2018-04-09
    • 1970-01-01
    相关资源
    最近更新 更多