问题
One of our project we are using below mentioned google maps api
Api1 : https://maps.googleapis.com/maps/api/geocode/json?address=' + city ;
API2: https://maps.googleapis.com/maps/api/distancematrix/json?origins=' + currentLatLong.replace('\s', '') + "&destinations=" + destinationLatLong + "&mode=" + mode + "&language=en";
Previously we used to pass free key in parameter body .recently we enabled premium api and we got client id and Private crypto key .
Kindly advice how to use it ?
回答1:
You should read the documentation that explains how to use client ID and digital signature with Premium plan license
https://developers.google.com/maps/documentation/geocoding/get-api-key#client-id
https://developers.google.com/maps/documentation/distance-matrix/get-api-key#client-id
I believe the documentation is quite clear. You can also continue using an API key, but you must generate an API key in your Premium plan project.
If you don't know who has access to your Premium plan project, please reach out to technical support team as explained in
https://developers.google.com/maps/premium/support
Hope this helps!
来源:https://stackoverflow.com/questions/43951389/google-maps-api-javascript-usage