实施 REST 路由服务模块版本
Enforce REST route service module version
我正在使用此处的 REST 路由 api (https://developer.here.com/rest-apis/documentation/routing/topics/api-reference.html),我注意到我对同一请求获得的响应有时会有所不同。我查看了 JSON 响应,发现 mapVersion、moduleVersion 和 interfaceVersion 不同。
我查看了文档以找到一种方法来指定我想要的 mapVersion/moduleVersion/interfaceVersion 但我找不到。
有没有办法确保对路由 api 的后续调用将使用相同的服务器或至少相同的数据和算法执行?
我在后续调用中得到不同响应的请求示例:
Request :
http://route.api.here.com/routing/7.2/calculateroute.json?&mode=shortest;car;traffic:disabled&representation=display&&app_id=<APPID>&app_code=<APPCODE>&waypoint0=geo!48.7536638,-3.4404475&waypoint1=geo!48.7532906,-3.4402628&waypoint2=geo!48.7529834,-3.4415456&waypoint3=geo!48.7526572,-3.4413922&waypoint4=geo!48.7532489,-3.4399076&waypoint5=geo!48.7536333,-3.43932
Response1 :
{"response":{"metaInfo":{"timestamp":"2017-01-20T10:56:55Z","mapVersion":"8.30.64.152","moduleVersion":"7.2.74.0-71276","interfaceVersion":"2.6.25"},"route": <...>
Reponse2:
{"response":{"metaInfo":{"timestamp":"2017-01-20T10:58:38Z","mapVersion":"8.30.67.153","moduleVersion":"7.2.201703-97140","interfaceVersion":"2.6.29"},"route":
这里支持回答:
The issue with different versions is not seen now, it might have been
only a temporary one. It could be a very unlikely coincidence that you
had noticed this when our services in the servers were being updated.
Please understand that the Map Data used by the different services are
updates on a weekly/biweekly basis and an updated version of the
service itself is released to the servers on a monthly basis. So there
could be changes in these versions from time to time, but there is no
options to use a specific map version or module version for your
request.
But ideally you should not see a difference in the main route
response parameters for the same routing request, unless there is a
considerable map data change for these regions.
我正在使用此处的 REST 路由 api (https://developer.here.com/rest-apis/documentation/routing/topics/api-reference.html),我注意到我对同一请求获得的响应有时会有所不同。我查看了 JSON 响应,发现 mapVersion、moduleVersion 和 interfaceVersion 不同。
我查看了文档以找到一种方法来指定我想要的 mapVersion/moduleVersion/interfaceVersion 但我找不到。
有没有办法确保对路由 api 的后续调用将使用相同的服务器或至少相同的数据和算法执行?
我在后续调用中得到不同响应的请求示例:
Request :
http://route.api.here.com/routing/7.2/calculateroute.json?&mode=shortest;car;traffic:disabled&representation=display&&app_id=<APPID>&app_code=<APPCODE>&waypoint0=geo!48.7536638,-3.4404475&waypoint1=geo!48.7532906,-3.4402628&waypoint2=geo!48.7529834,-3.4415456&waypoint3=geo!48.7526572,-3.4413922&waypoint4=geo!48.7532489,-3.4399076&waypoint5=geo!48.7536333,-3.43932
Response1 :
{"response":{"metaInfo":{"timestamp":"2017-01-20T10:56:55Z","mapVersion":"8.30.64.152","moduleVersion":"7.2.74.0-71276","interfaceVersion":"2.6.25"},"route": <...>
Reponse2:
{"response":{"metaInfo":{"timestamp":"2017-01-20T10:58:38Z","mapVersion":"8.30.67.153","moduleVersion":"7.2.201703-97140","interfaceVersion":"2.6.29"},"route":
这里支持回答:
The issue with different versions is not seen now, it might have been only a temporary one. It could be a very unlikely coincidence that you had noticed this when our services in the servers were being updated.
Please understand that the Map Data used by the different services are updates on a weekly/biweekly basis and an updated version of the service itself is released to the servers on a monthly basis. So there could be changes in these versions from time to time, but there is no options to use a specific map version or module version for your request.
But ideally you should not see a difference in the main route response parameters for the same routing request, unless there is a considerable map data change for these regions.