【发布时间】:2016-02-02 09:29:30
【问题描述】:
我正在尝试使用以下 URL 在两个位置之间绘制路线
"https://maps.googleapis.com/maps/api/directions/json?" + params + androidKey;
其中params 是起点和终点的纬度和经度,androidKey 是我使用我的 SHA 指纹从 Google 控制台收到的 Android 密钥。我已启用 Google Maps Android API、Google Places API for Android、Google Places API Web Service 等,但是当我尝试在手机上运行该应用程序时仍然收到以下响应
This IP, site or mobile application is not authorized to use this API key. Request received from IP address
我尝试使用服务器密钥导致以下响应
This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
有人可以帮忙吗? 谢谢
【问题讨论】:
-
确保在控制台中开启 Places API 服务
-
感谢您的回复。我已经提到了有关该问题的所有 StackOverflow 问题,但问题仍然存在。
-
@user1232138:检查我的答案
标签: android google-maps google-maps-api-3