【发布时间】:2016-01-04 19:50:41
【问题描述】:
我有一个纬度和经度:"-27.0000,133.0000"。我想以此为基础制作地图。
我试过去这个链接
https://maps.googleapis.com/maps/api/geocode/json?latlng=-27.0000,133.0000&key=******
我一直在浏览器上收到此错误
{
"error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console",
"results" : [],
"status" : "REQUEST_DENIED"
}
但我想我已经启用了该 API。我登录到我的 Google 控制台,然后仔细检查。
当我去:https://console.developers.google.com/project/75423435770063/apiui/apis/enabled
我明白了:
地理编码+地理定位已启用。
我现在有点卡住了。我在这里错过了什么吗?
【问题讨论】:
-
就像说它似乎是一个错误。检查您是否为正确的项目启用了API(使用的密钥所属的项目,您可能有多个项目)。
标签: google-maps google-maps-api-3 geocoding google-geolocation