我與GraphHopper路由引擎的穩定版本的問題0.5GraphHopper車輛=汽車的作品,但步行或騎自行車不工作
我可以使用vehicle=car
時的方向,但這個失敗自行車和腳。
對GraphHopper地圖大致3分鐘的步行路程Here is an example:
這就產生了地圖,這是偉大的結果。
我已經使用了完全相同座標運行此時在本地,如下獲得JSON數據:
http://localhost:8989/routes?point=-33.916567%2C18.417914&point=-33.917584%2C18.418935&locale=en-US&vehicle=foot
這產生任何結果,而是返回以下響應:
{
"message": "Vehicle not supported: foot",
"hints": [{
"message": "Vehicle not supported: foot",
"details": "java.lang.IllegalArgumentException"
}]
}
請注意,將車輛更改爲車輛收益率結果!這怎麼解決?
爲了完整起見,這裏是樣本請求和響應與車輛=汽車
{
"paths": [
{
"distance": 151.857,
"time": 18222,
"points_encoded": true,
"weight": 151.857451,
"instructions": [
{
"sign": 0,
"text": "Continue onto Hudson Street",
"time": 3782,
"distance": 31.517,
"interval": [
0,
1
]
},
{
"sign": -2,
"text": "Turn left onto Waterkant Street",
"time": 14440,
"distance": 120.34,
"interval": [
1,
3
]
},
{
"sign": 4,
"text": "Finish!",
"time": 0,
"distance": 0,
"interval": [
3,
3
]
}],
"bbox": [
18.417884,
-33.917672,
18.418824,
-33.916712
],
"points": "[email protected]@|@uAvAeB"
}
],
"hints": {
"visited_nodes.average": "20.0",
"visited_nodes.sum": "20"
},
"info": {
"copyrights": [
"GraphHopper",
"OpenStreetMap contributors"
],
"took": 10
}
}
我遇到了同樣的問題。 – davenewza