"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 (!this.tripToRouteMetroMap) {
            this.tripToRouteMetroMap = {};
            for (const routeName of Object.values(MetroRouteName)) {
                this.tripToRouteMetroMap[`${MetroRouteHelper.getRouteId(routeName)}`] = routeName.toString();
            }
        }
        return this.tripToRouteMetroMap;
    }
    static getRouteName(tripId) {
        return this.getTripRouteMap()[tripId.substring(0, 3)];
    }
}
exports.MetroRouteHelper = MetroRouteHelper;
//# sourceMappingURL=MetroRouteHelper.js.map