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.
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";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.