5, // kStayLeft = 24;
20, // kMerge = 25;
10, // kRoundaboutEnter = 26;
- 11, // kRoundaboutExit = 27;
+ 10, // kRoundaboutExit = 27;
17, // kFerryEnter = 28;
0, // kFerryExit = 29;
- ...Array(7).fill(), // irrelevant transit maneuvers
+ null, // kTransit = 30;
+ null, // kTransitTransfer = 31;
+ null, // kTransitRemainOn = 32;
+ null, // kTransitConnectionStart = 33;
+ null, // kTransitConnectionTransfer = 34;
+ null, // kTransitConnectionDestination = 35;
+ null, // kPostTransitConnectionDestination = 36;
21, // kMergeRight = 37;
20 // kMergeLeft = 38;
];
data: {
json: JSON.stringify({
locations: points.map(function (p) {
- return { lat: p.lat, lon: p.lng };
+ return { lat: p.lat, lon: p.lng, radius: 5 };
}),
costing: costing,
directions_options: {
};
}
- OSM.Directions.addEngine(new FOSSGISValhallaEngine("fossgis_valhalla_car", "auto"), true);
- OSM.Directions.addEngine(new FOSSGISValhallaEngine("fossgis_valhalla_bicycle", "bicycle"), true);
- OSM.Directions.addEngine(new FOSSGISValhallaEngine("fossgis_valhalla_foot", "pedestrian"), true);
+OSM.Directions.addEngine(new FOSSGISValhallaEngine("fossgis_valhalla_car", "auto"), true);
+OSM.Directions.addEngine(new FOSSGISValhallaEngine("fossgis_valhalla_bicycle", "bicycle"), true);
+OSM.Directions.addEngine(new FOSSGISValhallaEngine("fossgis_valhalla_foot", "pedestrian"), true);