]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/fossgis_osrm.js
consistent naming of FOSSGIS routers
[rails.git] / app / assets / javascripts / index / directions / fossgis_osrm.js
similarity index 96%
rename from app/assets/javascripts/index/directions/osrm.js
rename to app/assets/javascripts/index/directions/fossgis_osrm.js
index 280e66a80f0b1ffe175b5ba46f0d4e65a5c2b84d..3989ff2b6441c1f3e87c9725ce16b8f11a40cdb7 100644 (file)
@@ -1,7 +1,7 @@
 // OSRM engine
 // Doesn't yet support hints
 
-function OSRMEngine(id, vehicleType) {
+function FOSSGISOSRMEngine(id, vehicleType) {
   var cachedHints = [];
 
   return {
@@ -207,6 +207,6 @@ function OSRMEngine(id, vehicleType) {
   };
 }
 
-OSM.Directions.addEngine(new OSRMEngine("fossgis_osrm_car", "car"), true);
-OSM.Directions.addEngine(new OSRMEngine("fossgis_osrm_bike", "bike"), true);
-OSM.Directions.addEngine(new OSRMEngine("fossgis_osrm_foot", "foot"), true);
+OSM.Directions.addEngine(new FOSSGISOSRMEngine("fossgis_osrm_car", "car"), true);
+OSM.Directions.addEngine(new FOSSGISOSRMEngine("fossgis_osrm_bike", "bike"), true);
+OSM.Directions.addEngine(new FOSSGISOSRMEngine("fossgis_osrm_foot", "foot"), true);