I am new to use Google api nearest roads to snap the roads.
I was trying as in the below link:
If I have to try the
https://roads.googleapis.com/v1/nearestRoads?parameters&key=YOUR_API_KEY
with the api key provided in my Project, I get
{
"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=****"
}
]
}
]
}
replaces the key used.
What am I missing here? Should I verify the key somewhere before using? Or if I want to just try out the samples how do I get the key?