X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26fedd00319143b50e740f59d246cc24a4b124e2..e3c919275818d46a515c183cf373d7a53bc6942a:/app/assets/javascripts/index/directions/fossgis_valhalla.js?ds=sidebyside diff --git a/app/assets/javascripts/index/directions/fossgis_valhalla.js b/app/assets/javascripts/index/directions/fossgis_valhalla.js index 62afb4e4a..619f8f1e3 100644 --- a/app/assets/javascripts/index/directions/fossgis_valhalla.js +++ b/app/assets/javascripts/index/directions/fossgis_valhalla.js @@ -27,16 +27,16 @@ function FOSSGISValhallaEngine(id, costing) { 5, // kStayLeft = 24; 20, // kMerge = 25; 10, // kRoundaboutEnter = 26; - 11, // kRoundaboutExit = 27; + 10, // kRoundaboutExit = 27; 17, // kFerryEnter = 28; 0, // kFerryExit = 29; - undefined, // kTransit = 30; - undefined, // kTransitTransfer = 31; - undefined, // kTransitRemainOn = 32; - undefined, // kTransitConnectionStart = 33; - undefined, // kTransitConnectionTransfer = 34; - undefined, // kTransitConnectionDestination = 35; - undefined, // kPostTransitConnectionDestination = 36; + 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; ]; @@ -53,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: { @@ -113,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);