// OSRM car engine // Doesn't yet support hints OSRMEngine = function(vehicleName, baseURL, locale) { this.vehicleName = vehicleName; this.baseURL = baseURL; this.locale = locale; if (!locale) this.locale = "en"; }; OSRMEngine.prototype.createConfig = function() { var that = this; return { name: "javascripts.directions.engines.osrm_"+this.vehicleName.toLowerCase(), creditline: 'OSRM', draggable: true, _hints: {}, getRoute: function(isFinal,points) { var url=that.baseURL+"?z=14&output=json"; for (var i=0; i "; instText+=TURN_INSTRUCTIONS[instCodes[0]]; if (instCodes[1]) { instText+="exit "+instCodes[1]+" "; } if (instCodes[0]!=15) { instText+=s[1] ? ""+s[1]+"" : I18n.t('javascripts.directions.instructions.unnamed'); } if ((i+1)