谷歌地图API使用情况 [英] google maps api javascript usage

查看:118
本文介绍了谷歌地图API使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们之前使用的一个项目是google maps api


$ b

Api1


API2: https://maps.googleapis.com/maps/api/distancematrix/json?origins= '+ currentLatLong.replace('\s','')
+& destinations =+ destinationLatLong +& mode =+ mode
+& language = en;

以前我们曾经在参数体中传递了自由键,最近我们启用了高级API,我们得到了客户端ID和私钥密钥。



请教如何使用它?您应该阅读说明如何使用客户端ID和挖掘的文档具有Premium计划许可证的Ital签名

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

我相信这个文档很清楚。您也可以继续使用API​​密钥,但必须在Premium计划项目中生成API密钥。



如果您不知道谁有权使用您的Premium计划项目,请按照

https://developers.google.com/maps/premium/support



希望这有助于您!


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 ?

解决方案

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!

这篇关于谷歌地图API使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆