Reputation: 4097
I am trying to use Google Static Maps API V2 for business on Android. Firstly, generated signature using client Id and Crypto Key, and made the below call to Google on Android device. (Modified client id)
But I have the below error message.
The Google Maps API server rejected your request. Unable to authenticate the request. Provided 'signature' is not valid for the provided client ID. Learn more: https://developers.google.com/maps/documentation/business/webservices/auth
However I can open correct map on desktop browser using that url, so the signature and url is fine. I think I need to set something else, but I do not know what I should set up more.
If anyone has this experience, please let me know how to setup Google Static Maps API V2 for business on Android.
Thanks in advance.
Upvotes: 4
Views: 1306
Reputation: 11
Upvotes: 0
Reputation: 7114
this is the format that my URL is in, maybe you have it wrong
URL = "http://maps.google.com/maps/api/staticmap?center=" +lati
+ "," + longi + "&zoom=18&size=400x380&maptype=hybrid&sensor=false&
key=AIzaSyCWRdg8Kiy7CI9tsKjt57bbTIrV_L6QQ3c";
Upvotes: 1