All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphhopper.maps.js.messages.js Maven / Gradle / Ivy

There is a newer version: 10.0
Show newest version
module.exports.extractMetaVersionInfo = function (json) {
    metaVersionInfo = "";
    if (json.data_date)
        metaVersionInfo += "
Data date: " + json.data_date; if (json.import_date) metaVersionInfo += "
Import date: " + json.import_date; if (json.prepare_date) metaVersionInfo += "
Prepare date: " + json.prepare_date; if (json.version) metaVersionInfo += "
GH version: " + json.version; if (json.build_date) metaVersionInfo += "
Jar date: " + json.build_date; return metaVersionInfo; }; module.exports.getSignName = function (sign) { if (sign === -98) return "u_turn"; else if (sign === -8) return "u_turn_left"; else if (sign === -7) return "keep_left"; else if (sign === -3) return "sharp_left"; else if (sign === -2) return "left"; else if (sign === -1) return "slight_left"; else if (sign === 0) return "continue"; else if (sign === 1) return "slight_right"; else if (sign === 2) return "right"; else if (sign === 3) return "sharp_right"; else if (sign === 4) return "marker-icon-red"; else if (sign === 5) return "marker-icon-blue"; else if (sign === 6) return "roundabout"; else if (sign === 7) return "keep_right"; else if (sign === 8) return "u_turn_right"; else if (sign === 101) return "pt_start_trip"; else if (sign === 102) return "pt_transfer_to"; else if (sign === 103) return "pt_end_trip"; else // throw "did not find sign " + sign; return "unknown"; }; module.exports.browserTitle = "GraphHopper Maps - Driving Directions";




© 2015 - 2024 Weber Informatics LLC | Privacy Policy