路由v7/v8,自行车和时长 [英] Routing v7/v8, bicycle and durations

查看:54
本文介绍了路由v7/v8,自行车和时长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在开始使用Here Routing API,并且注意到一些不同之处,希望对此有所启发:

I'm getting started on Here Routing API, and I noticed some differences for which I'd like some enlightments:

  1. 为什么自行车运输模式在v7中可用,但在v8中不再可用?

  1. Why is bicycle transport mode available in v7 but not anymore in v8?

v7和v8的持续时间值之间存在差异,例如以行人运输方式...我不了解原因;也许我想念什么?

There are differences between v7 and v8 in duration values, with pedestrian transport mode for example... I don't understand the reason; maybe I am missing something?

v7: https://route.ls.hereapi.com/routing/7.2/calculateroute.json?mode=fastest;pedestrian;traffic:disabled;&waypoint0=geo!48.904732,2.30254& waypoint1 = geo!48.872631,2.35753& transportMode =步行者& walkSpeed = 1.4 =>持续时间1h11min

v8: https://router.hereapi.com/v8/routes?transportMode=pedestrian&origin=48.904732,2.30254&destination=48.872631,2.35753&return=摘要 =>持续时间1h39min

乍一看,v7似乎更符合我的需求,但是我不想实施将在几个月后被弃用的服务,因为我猜v8很快就会取代v7,不是吗?

At first glance the v7 seems more appropriate to my needs, but I wouldn't like to implement a service that will be deprecated in a few months, as I guess the v8 will soon replace v7, isn't it?

这些问题(自行车的运输方式和持续时间的差异)对我的项目很重要,因此任何帮助都会很棒!

These questions (bicycle transport mode and duration differences) are important for my project, so any help would be great!

推荐答案

回答第一个问题:自行车路由模式当前正在从V7移植到V8.它将很快得到官方支持,也许是7月初.

Answer to 1st Q: bicycle routing mode is currently being ported from V7 to V8. It will be officially supported pretty soon, maybe early July.

回答第二个问题:差异是由于V7中使用的walkSpeed参数所致.如果删除该参数,则将获得几乎相同的持续时间.当前,V8不支持该参数.但是,一种新的行人[速度]"被赋予了新的意义.参数目前正在开发中,很快就会推出,很有可能也会在7月发布.

Answer to 2nd Q: the difference is due to the walkSpeed parameter used in V7. If you remove the parameter, you will get almost the same duration. Currently, V8 doesn't support the parameter. But, a new "pedestrian[speed]" parameter is currently under work and will available soon, likely in July as well.

实际上,V7仍在积极维护中,新功能也计划在年底之前发布.因此,它不太可能很快淘汰.希望这些回答了您的问题.

Actually V7 is still being actively maintained, new features are also being scheduled till year end. So, it is not likely to phase out anytime soon. Hopefully, these answered your questions.

这篇关于路由v7/v8,自行车和时长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆