没有API密钥的静态地图URL仍然有效(?)

时间:2016-05-04 08:48:53

标签: android google-maps api-key

我正在使用来自的图片 http://maps.google.com/maps/api/staticmap

并注意到链接在没有参数API_Key的情况下工作,例如:

http://maps.google.com/maps/api/staticmap?center=53,51&maptype=satellite&zoom=17&size=640x300&sensor=false

为什么要使用API​​_Key参数,如果它是可选的?有什么理由吗?

2 个答案:

答案 0 :(得分:2)

我的猜测是它在一定限度内免费演示。

Google在此页面上提及:https://developers.google.com/maps/documentation/static-maps/intro?hl=en

  

Google Static Maps API使用限制已更改。通过创建API密钥并将其包含在您的请求中,您可以跟踪Google Developers Console中的使用情况,并在需要时购买额外的配额。

因此,如果您想使用此API构建软件,建议您创建自己的API密钥,以便能够监控您的使用情况并避免被踢出去#34;没有信息。

答案 1 :(得分:0)

从2016年6月22日起,实际上必须使用API​​密钥:https://developers.google.com/maps/standard-plan-2016-update