google maps api javascript usage

自古美人都是妖i 提交于 2019-12-13 11:04:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!