我是否需要地图距离矩阵API的API密钥?

问题描述 投票:2回答:1

使用距离矩阵API时必须使用API​​密钥吗?

[Google文档指出,每个请求中都应包含该键,但是我可以在不包含键的情况下获得持续时间和距离值。

https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Washington,DC&destinations=New+York+City,NY

但是当我需要duration_in_traffic变量时,我确实需要使用键。

https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Washington,DC&destinations=New+York+City,NY&departure_time=1531583990&key=API_KEY

这些是Google规定的基本和高级价格,https://developers.google.com/maps/documentation/distance-matrix/usage-and-billing#distance-matrix

而且我想知道在发送基本请求时是否应该使用我的API密钥,因为如果我使用API​​密钥,我将必须付费。

google-distancematrix-api
1个回答
0
投票

从上次某个距离,距离矩阵api要求所有请求都使用API​​ KEY

© www.soinside.com 2019 - 2024. All rights reserved.