Server-side waypoint limit for Google Directions API

牧云@^-^@ 提交于 2020-01-06 08:18:07

问题


I am trying to access the 23 waypoint limit in the Google Directions API.

Based on Google Maps Directions API Standard Usage Limits:

2,500 free directions requests per day, calculated as the sum of client-side and server-side queries.
UP TO 23 WAYPOINTS ALLOWED IN EACH SERVER-SIDE REQUEST, or up to 8 waypoints when using the Directions service in the Google Maps JavaScript API.
50 requests per second, calculated as the sum of client-side and server-side queries.

I currently have a Server API Key setup that I am referencing in my request URI. My Google API account also has Billing Enabled.

When I try to make a request to the Google Directions API in my ASP.NET MVC Controller, I am always hit with a MAX_WAYPOINTS_EXCEEDED response because I have over 8 waypoints in my request. However, I am not using the Google Maps JavaScript API. I am making a server-side request with a billable account.

Is there anything I may need to configure in my API account? Maybe I am not linking the billing account to the server API key?

Below is the request URI. Maybe I am not requesting from the appropriate service?

https://maps.googleapis.com/maps/api/directions/xml?units=imperial&mode=driving&origin={0}&destination={1}&waypoints=optimize:true|{2}&KEY={3}

来源:https://stackoverflow.com/questions/38702402/server-side-waypoint-limit-for-google-directions-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!