Using Google Maps Directions Api In Android - What Kind Of Api Key Is Needed?
I'm embedding a map into my Android App and want to make it draw a route between two points. However, I have no clue, how to get a correct key for Directions Api - the server retur
Solution 1:
yes. Obviously the key type should be server or none because you are using the web url (like https://maps.googleapis.com/maps/api/directions/json?) instead of mobile sdk.
Mobile(Key restriction type is either Android or iOS) API key will be required only when we use on mobile sdk to fetch and manipulate the google map feature.
Note: Key restriction type None will be supported for all platform but recommended is specific type of restriction based on platform.
Solution 2:
I have integrated google direction api in one of my project and I have use server key for that.
go to https://console.developers.google.com enable google direction API create a server key user same key in the android to call direction API
Post a Comment for "Using Google Maps Directions Api In Android - What Kind Of Api Key Is Needed?"