我正在尝试访问Google Directions API中的 23航点限制。
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.
我目前有一个服务器API密钥设置,我在请求URI中引用它。我的Google API帐户也启用了结算功能。
当我尝试向ASP.NET MVC控制器中的Google Directions API发出请求时,我总是遇到MAX_WAYPOINTS_EXCEEDED
响应,因为我的请求中有超过8个航点。但是,我没有使用Google Maps JavaScript API。我正在使用可计费帐户进行服务器端请求。
我的API帐户中是否需要配置任何内容?也许我没有将结算帐户与服务器API密钥相关联?
以下是请求URI。也许我没有要求适当的服务?
https://maps.googleapis.com/maps/api/directions/xml?units=imperial&mode=driving&origin={0}&destination={1}&waypoints=optimize:true|{2}&KEY={3}