与 Google Maps Javascript API v3 一起使用时的服务使用限制

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17865291/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 09:54:19  来源:igfitidea点击:

Usage limits for services when used with Google Maps Javascript API v3

javascriptapigoogle-mapsgoogle-maps-api-3

提问by CyberJunkie

I'm trying to clarify the usage limits for Google Maps services (e.g. Places, Directions, etc) when used with the Google Maps Javascript API.

我试图阐明与 Google Maps Javascript API 一起使用时 Google 地图服务(例如地点、路线等)的使用限制。

According to the official documentation

根据官方文档

The JavaScript Maps API V3 is a free service, available for any web site that is free to consumers

JavaScript Maps API V3 是一项免费服务,可用于任何对消费者免费的网站

and

For-profit web sites are permitted to generate up to 25?000 map loads per day using the Google Maps JavaScript API v3.

允许营利性网站使用 Google Maps JavaScript API v3 每天生成多达 25?000 次地图加载。

Now each Google Maps service API has its own usage limits:

现在每个 Google 地图服务 API 都有自己的使用限制:

  • Places API allows 1,000 or 100,000 (if you're verified) requests per 24 hours.

  • Directions API allows 2,500 requests per day

  • Places API 每 24 小时允许 1,000 或 100,000(如果您已通过验证)请求。

  • Directions API 每天允许 2,500 个请求

In my web app I'm using the places library and direction service via the Javascript API.Do the usage limits for each service apply when used with the Javascript API? The documentation doesn't make that clear.

在我的网络应用程序中,我通过Javascript API使用地点库和方向服务与 Javascript API 一起使用时,每个服务的使用限制是否适用?文档没有说清楚。

回答by Praveen

Yes. The usage limit for Google maps APIs affects only when your site gets more traffic.

是的。谷歌地图 API 的使用限制仅在您的网站获得更多流量时影响。

Each API has its own usage limitation.

每个 API 都有自己的使用限制。

  • Google Geocoding Service:2,500 requests per day
  • Google Maps Javascript API :up to 25,000 map loads per day for each service.

    This includes:

    1. a map is displayed using the Maps JavaScript API (V2 or V3) when
      loaded by a web page or application;
    2. a Street View panorama is displayed using the Maps JavaScript API (V2 or V3) by a web page or application that has not also displayed a map;
    3. a SWF that loads the Maps API for Flash is loaded by a web page or application; or
    4. a single request is made for a map image from the Static Maps API.
    5. a single request is made for a panorama image from the Street View Image API.
  • Google 地理编码服务:每天 2,500 个请求
  • Google Maps Javascript API:每项服务每天最多加载 25,000 次地图。

    这包括:


    1. 由网页或应用程序加载时,使用 Maps JavaScript API(V2 或 V3)显示地图;
    2. 未显示地图的网页或应用程序使用 Maps JavaScript API(V2 或 V3)显示街景全景图;
    3. 加载 Maps API for Flash 的 SWF 由网页或应用程序加载;或者
    4. 从静态地图 API 对地图图像发出单个请求。
    5. 对来自 Street View Image API 的全景图像发出一个请求。

If you think that your site exceeds these usage limit, then you should consider to purchase a Maps API for Business license.

如果您认为您的站点超出了这些使用限制,那么您应该考虑 购买Maps API for Business 许可

Check the following sites for additional information:

检查以下站点以获取更多信息:

Hope that the above information helps you.

希望以上信息对您有所帮助。