【问题标题】:Trying to access nearby places of type hospital in android app giving invalid request?试图在 android 应用程序中访问附近的医院类型的地方给出无效请求?
【发布时间】:2015-08-01 12:31:37
【问题描述】:

我正在尝试使用以下 url url 在 android 应用程序中访问附近的医院,但它说这是一个无效请求。

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=171.0,74.8190934&radius=5000&types=hospital&sensor=true&key=AIzaSyBJ5fMauIQpTnuclgzozRCmGhMM_4PgfkY. 

我的 google 地方浏览器 api 密钥是 AIzaSyBJ5fMauIQpTnuclgzozRCmGhMM_4PgfkY

我做错了什么?

【问题讨论】:

  • 在没有 API 密钥的情况下尝试您的代码并提供反馈

标签: android google-maps google-play-services


【解决方案1】:

您的位置参数无效。如果您尝试反向,则为纬度,经度(纬度 171 超出可能的值)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-28
    • 2013-11-20
    • 2016-02-25
    • 1970-01-01
    • 2017-02-14
    • 2010-12-21
    • 2018-02-23
    • 1970-01-01
    相关资源
    最近更新 更多