我正在运行TomTom路线api。
这是网址。
https://api.tomtom.com/routing/1/calculateRoute/7.841327000000001,6.745921000000001:7.840205322,6.746850516?key=mykey>&routeType =最快
距离显示176米。
当我运行相同的api时,更改 routeType ='thrilling',如下所示
https://api.tomtom.com/routing/1/calculateRoute/7.841327000000001,6.745921000000001:7.840205322,6.746850516?key=mykey>&routeType =惊险
我仍然得到相同的距离 176 mtr
但是,tomtom路线的GUI网站显示了不同的结果。
我在Tomtom GUI上寻找相同坐标之间的路线作为路线。
第一:(最快)
https://mydrive.tomtom.com/en_gb/#mode=routes+viewport=7.84061,6.74596,17.97,0,-0+routes=%7B%22departure%22:true,%22traffic%22:true,%22routeType%22:%22FASTEST%22,%22travelMode%22:%22CAR%22,%22points%22:%5B%22hw~7.84132,6.74592~A~Kogi,%20NGA%22,%22hw~7.8402,6.74685~A~Kogi,%20NGA%22%5D,%22avoidCriteria%22:%5B%5D%7D+ver=3
我的距离为190码
第二:(激动)
https://mydrive.tomtom.com/en_gb/#mode=routes+viewport=7.83847,6.74261,15.93,0,-0+routes=%7B%22roundTrip%22:true,%22departure%22:true,%22traffic%22:true,%22routeType%22:%22THRILLING%22,%22travelMode%22:%22CAR%22,%22hilliness%22:%22NORMAL%22,%22windingness%22:%22NORMAL%22,%22points%22:%5B%22hw~7.84132,6.74592~A~Kogi,%20NGA%22,%22hw~7.8402,6.74685~A~Kogi,%20NGA%22%5D,%22avoidCriteria%22:%5B%22ALREADY_USED_ROADS%22%5D%7D+ver=3
我的距离为3英里。
我主要担心的是使用 mydrive.tomtom.com 时显示正确的结果,但是通过API, routeType 选项不起作用。
请帮助