"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetroRouteHelper = exports.MetroRouteName = void 0;
var MetroRouteName;
(function (MetroRouteName) {
    MetroRouteName["LINE_A"] = "A";
    MetroRouteName["LINE_B"] = "B";
    MetroRouteName["LINE_C"] = "C";
})(MetroRouteName || (exports.MetroRouteName = MetroRouteName = {}));
const metroRouteId = {
    [MetroRouteName.LINE_A]: "991",
    [MetroRouteName.LINE_B]: "992",
    [MetroRouteName.LINE_C]: "993",
};
class MetroRouteHelper {
    static getRouteId(routeName) {
        return metroRouteId[routeName];
    }
    static getTripRouteMap() {
        if (!MetroRouteHelper.tripToRouteMetroMap) {
            MetroRouteHelper.tripToRouteMetroMap = {};
            for (const routeName of Object.values(MetroRouteName)) {
                MetroRouteHelper.tripToRouteMetroMap[`${MetroRouteHelper.getRouteId(routeName)}`] = routeName.toString();
            }
        }
        return MetroRouteHelper.tripToRouteMetroMap;
    }
    static getRouteName(tripId) {
        return MetroRouteHelper.getTripRouteMap()[tripId.substring(0, 3)];
    }
}
exports.MetroRouteHelper = MetroRouteHelper;
//# sourceMappingURL=MetroRouteHelper.js.map