I'm trying to plot a route between two locations using the following URL
"https://maps.googleapis.com/maps/api/directions/json?" + params + androidKey;
where params
is the latitude and longitude of the the origin and destination and androidKey
is the Android Key I received from Google Console using my SHA fingerprint. I have enabled Google Maps Android API, Google Places API for Android, Google Places API Web Service amongst others, however I'm still getting the following response when I try running the application on my phone
This IP, site or mobile application is not authorized to use this API key. Request received from IP address
I tried using Server Key which resulted in the following response
This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
Could someone please help? Thanks