]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/fossgis_valhalla.js
consistent naming of FOSSGIS routers
[rails.git] / app / assets / javascripts / index / directions / fossgis_valhalla.js
similarity index 89%
rename from app/assets/javascripts/index/directions/valhalla.js
rename to app/assets/javascripts/index/directions/fossgis_valhalla.js
index 2b946b783119eaa1f674a29bb30281b0eca1cd90..c897a3b16943c84ebb8c8b783a728b97c6763efa 100644 (file)
@@ -1,4 +1,4 @@
-function ValhallaEngine(id, costing) {
+function FOSSGISValhallaEngine(id, costing) {
   var INSTR_MAP = [
     0, // kNone = 0;
     8, // kStart = 1;
@@ -107,6 +107,6 @@ function ValhallaEngine(id, costing) {
   };
 }
 
-  OSM.Directions.addEngine(new ValhallaEngine("valhalla_car", "auto"), true);
-  OSM.Directions.addEngine(new ValhallaEngine("valhalla_bicycle", "bicycle"), true);
-  OSM.Directions.addEngine(new ValhallaEngine("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);