Add more routing tests

This commit is contained in:
xmd5a 2016-06-06 22:54:29 +03:00
parent cecf852c23
commit a63d8b4058

View file

@ -46,7 +46,7 @@
"params": {
"vehicle": "car",
"short_way": "true",
"planRoadDirection": "0"
"planRoadDirection": "-1"
},
"startPoint": {
"latitude": 45.931599776352,
@ -66,7 +66,7 @@
"params": {
"vehicle": "car",
"short_way": "true",
"planRoadDirection": "0"
"planRoadDirection": "-1"
},
"startPoint": {
"latitude": 45.897651835396935,
@ -83,5 +83,87 @@
"expectedResults": {
"44358491": "true"
}
},
{
"testName": "10.Longer route preferred? https://github.com/osmandapp/Osmand/issues/1941",
"description": "short_way строит не самый короткий путь. Транзит через MEX 261 короче.",
"params": {
"vehicle": "car",
"short_way": "true",
"planRoadDirection": "-1"
},
"startPoint": {
"latitude": 45.9011493841283,
"longitude": 35.493414759635954
},
"endPoint": {
"latitude": 45.88636204636078,
"longitude": 35.486109763383894
},
"expectedResults": {
"53445": "true"
}
},
{
"testName": "12.Bizarre navigation at Sundance dr & Sentinel dr in Fremont, CA, USA https://github.com/osmandapp/Osmand/issues/1743",
"params": {
"vehicle": "car",
"short_way": "true",
"planRoadDirection": "-1"
},
"startPoint": {
"latitude": 45.84882743070033,
"longitude": 35.2621882259846
},
"endPoint": {
"latitude": 45.847528944857174,
"longitude": 35.27665740251544
},
"expectedResults": {
"6344915": "false",
"6346622": "true"
}
},
{
"testName": "12.1.Bizarre navigation at Sundance dr & Sentinel dr in Fremont, CA, USA (transit2 point) https://github.com/osmandapp/Osmand/issues/1743",
"params": {
"vehicle": "car",
"short_way": "true",
"planRoadDirection": "-1"
},
"startPoint": {
"latitude": 45.84882743070033,
"longitude": 35.2621882259846
},
"transitPoint": {
"latitude": 45.84813,
"longitude": 35.275932
},
"endPoint": {
"latitude": 45.847528944857174,
"longitude": 35.27665740251544
},
"expectedResults": {
"6335573": "false"
}
},
{
"testName": "12.2.Bizarre navigation at Sundance dr & Sentinel dr in Fremont, CA, USA (reverse) https://github.com/osmandapp/Osmand/issues/1743",
"params": {
"vehicle": "car",
"short_way": "true",
"planRoadDirection": "-1"
},
"startPoint": {
"latitude": 45.84747047681003,
"longitude": 35.276624009925854
},
"endPoint": {
"latitude": 45.84886985240254,
"longitude": 35.262113259155285
},
"expectedResults": {
"6346622": "true"
}
}
]