我是使用 Google api 最近的道路拍摄道路的新手。
我正在尝试如下链接:
如果我必须尝试
https://roads.googleapis.com/v1/nearestRoads?parameters&key=YOUR_API_KEY
使用我的项目中提供的 api 密钥,我得到
{
"error": {
"code": 403,
"message": "Roads API has not been used in project **** before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/roads/overview?project=*** then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developer console API activation",
"url": "https://console.developers.google.com/apis/api/roads/overview?project=****"
}
]
}
]
}
替换使用的密钥。
我在这里想念什么?我应该在使用前在某处验证密钥吗?或者,如果我只想试用样品,我该如何获得钥匙?