// OSRM engine
// Doesn't yet support hints
-function OSRMEngine(id, vehicleType) {
+function FOSSGISOSRMEngine(id, vehicleType) {
var cachedHints = [];
return {
};
}
-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);
-function ValhallaEngine(id, costing) {
+function FOSSGISValhallaEngine(id, costing) {
var INSTR_MAP = [
0, // kNone = 0;
8, // kStart = 1;
};
}
- 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);
graphhopper_bicycle: "Bicycle (GraphHopper)"
graphhopper_car: "Car (GraphHopper)"
graphhopper_foot: "Foot (GraphHopper)"
- valhalla_bicycle: "Bicycle (Valhalla)"
- valhalla_car: "Car (Valhalla)"
- valhalla_foot: "Foot (Valhalla)"
+ fossgis_valhalla_bicycle: "Bicycle (Valhalla)"
+ fossgis_valhalla_car: "Car (Valhalla)"
+ fossgis_valhalla_foot: "Foot (Valhalla)"
descend: "Descend"
directions: "Directions"
distance: "Distance"