I'm using the Google map v2 for android. I would like to call to the directions api to get the points from android device. I registered the Google console key, I can view the map on android. I used this key to include in the directions api call like this:
https://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&sensor=false&key=API_KEY
The API_KEY is the key I created for maps:
But when I request from android apps to call to directions api, I got this returned:
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key.",
"routes" : [],
"status" : "REQUEST_DENIED"
}
How can I resolve this error? Please help
Thanks