【发布时间】:2015-10-01 16:41:50
【问题描述】:
我为 MapQuest API 生成了免费密钥(每月 15,000 次免费交易)。我只会使用 Directions API 而不会使用其他任何东西。重要的是我只想将它与指定的 GPS 坐标一起使用 - 所以我不需要地理编码功能。
当我向 MapQuest webService /optimizedroute 发送请求时,他们将此作为 1 次方向交易(没问题)收费,但他们也计算 N 次地理编码交易(N 是路线请求中的点数)。
我有点困惑,因为我不提供地址字符串,而是提供 GPS 坐标 - 我不知道他们为什么要为地理编码交易收费。
这里有我的示例请求(它们计算这 2 个变体的地理编码 - 无论我使用字符串 GPS 坐标还是 JSON LatLng 对象):
1.
curl -X POST -H "Content-Type: application/json" -v -d '{"locations": [{"latLng":{"lat": 51.129044, "lng": 17.045847}}, {"latLng":{"lat": 51.107062, "lng": 17.032286}}, {"latLng":{"lat": 51.053140, "lng": 16.974779}}, {"latLng":{"lat": 51.077520, "lng": 17.065245}}, {"latLng":{"lat": 51.141539, "lng": 17.087733}}, {"latLng":{"lat": 51.102643, "lng": 17.087389}}, {"latLng":{"lat": 51.122903, "lng": 17.030741}}, {"latLng":{"lat": 51.129044, "lng": 17.045847}}], "routeType": "shortest", "options": {"unit": "k", "narrativeType": "none", "fullShape": true}}' http://www.mapquestapi.com/directions/v2/optimizedroute?key=KEY
2.
curl -X POST -H "Content-Type: application/json" -v -d '{"locations": ["51.129044,17.045847", "51.107062,17.032286", "51.053140,16.974779", "51.077520,17.065245", "51.141539,17.087733", "51.102643,17.087389", "51.122903,17.030741, "51.129044,17.045847"], "routeType": "shortest", "options": {"unit": "k", "narrativeType": "none", "fullShape": true}}' http://www.mapquestapi.com/directions/v2/optimizedroute?key=KEY
有没有人知道他们为什么要向我收取我没有使用的地理编码服务的费用?或者,也许您知道我应该如何使用他们的 Directions API 不向我收取地理编码费用?
您好。
【问题讨论】:
-
您在哪里看到他们收取多少交易费用?
-
@Tahlor 当您在 Map Quest 开发者控制台中时,只需单击我的应用程序 -> 单击您的应用程序并选择事务报告。
标签: api directions mapquest