X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1e332721531b9b3baa1a8795a718cdeffdb2bd40..9f704f1d4ec0bf5685939aa4f5cb9fb6854a24bc:/app/assets/javascripts/index/directions/fossgis_valhalla.js?ds=inline diff --git a/app/assets/javascripts/index/directions/fossgis_valhalla.js b/app/assets/javascripts/index/directions/fossgis_valhalla.js index c897a3b16..d44dbd12b 100644 --- a/app/assets/javascripts/index/directions/fossgis_valhalla.js +++ b/app/assets/javascripts/index/directions/fossgis_valhalla.js @@ -30,7 +30,13 @@ function FOSSGISValhallaEngine(id, costing) { 11, // 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; ]; @@ -47,7 +53,7 @@ function FOSSGISValhallaEngine(id, costing) { 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: { @@ -107,6 +113,6 @@ function FOSSGISValhallaEngine(id, costing) { }; } - 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);