需要帮助使用谷歌地图API

时间:2015-10-15 15:17:37

标签: android google-maps google-maps-api-3 google-api

我正在尝试使用谷歌地图api从谷歌地图获取duration_in_traffic,但(1)我不明白如何获取客户端ID和(2)我不知道什么是签名参数。 (duration_in_traffic是考虑流量的驾驶时间,您可以在Google地图中请求路径时看到) 你可以帮帮我吗? 谢谢,Yuval。

  

https://developers.google.com/maps/documentation/directions/intro

如果你在这里搜索“duration_in_traffic”,你会看到谷歌对它的描述以及所需的参数,包括客户和签名。

1 个答案:

答案 0 :(得分:0)

您需要购买for Work版本的Google Maps API才能获取duration_in_traffic参数。您将获得一个客户端ID和一个签名,然后您可以使用它来发出请求,如Web Services - Authentication and Authorization

中所述。
相关问题