]> git.openstreetmap.org Git - rails.git/commitdiff
renamed fossgis engine
authorChristian Beiwinkel <chrstn.bwnkl@gmail.com>
Fri, 16 Dec 2022 15:57:14 +0000 (16:57 +0100)
committerChristian Beiwinkel <chrstn.bwnkl@gmail.com>
Fri, 16 Dec 2022 15:57:14 +0000 (16:57 +0100)
app/assets/javascripts/index/directions/osrm.js [moved from app/assets/javascripts/index/directions/fossgis.js with 95% similarity]

similarity index 95%
rename from app/assets/javascripts/index/directions/fossgis.js
rename to app/assets/javascripts/index/directions/osrm.js
index 8e5e8e621d6d8b194e9ecc7f254c43287cb077ab..280e66a80f0b1ffe175b5ba46f0d4e65a5c2b84d 100644 (file)
@@ -1,12 +1,12 @@
-// FOSSGIS engine (OSRM based)
+// OSRM engine
 // Doesn't yet support hints
 
 // Doesn't yet support hints
 
-function FOSSGISEngine(id, vehicleType) {
+function OSRMEngine(id, vehicleType) {
   var cachedHints = [];
 
   return {
     id: id,
   var cachedHints = [];
 
   return {
     id: id,
-    creditline: "<a href=\"https://routing.openstreetmap.de/about.html\" target=\"_blank\">FOSSGIS Routing Service</a>",
+    creditline: "<a href=\"https://routing.openstreetmap.de/about.html\" target=\"_blank\">OSRM (FOSSGIS)</a>",
     draggable: true,
 
     _transformSteps: function (input_steps, line) {
     draggable: true,
 
     _transformSteps: function (input_steps, line) {
@@ -207,7 +207,6 @@ function FOSSGISEngine(id, vehicleType) {
   };
 }
 
   };
 }
 
-OSM.Directions.addEngine(new FOSSGISEngine("fossgis_osrm_car", "car"), true);
-OSM.Directions.addEngine(new FOSSGISEngine("fossgis_osrm_bike", "bike"), true);
-OSM.Directions.addEngine(new FOSSGISEngine("fossgis_osrm_foot", "foot"), true);
-
+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);