aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/config')
-rw-r--r--src/frontend/app/config/RegionConfig.ts25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/frontend/app/config/RegionConfig.ts b/src/frontend/app/config/RegionConfig.ts
index 4677509..43fe70a 100644
--- a/src/frontend/app/config/RegionConfig.ts
+++ b/src/frontend/app/config/RegionConfig.ts
@@ -1,6 +1,26 @@
import type { LngLatLike } from "maplibre-gl";
-export const REGION_DATA = {
+export type RegionId = "vigo";
+
+export interface RegionData {
+ id: RegionId;
+ name: string;
+ stopsEndpoint: string;
+ estimatesEndpoint: string;
+ consolidatedCirculationsEndpoint: string;
+ timetableEndpoint: string;
+ shapeEndpoint: string;
+ defaultCenter: LngLatLike;
+ bounds: {
+ sw: LngLatLike;
+ ne: LngLatLike;
+ };
+ textColour: string;
+ defaultZoom: number;
+ showMeters: boolean;
+}
+
+export const REGION_DATA: RegionData = {
id: "vigo",
name: "Vigo",
stopsEndpoint: "/stops/vigo.json",
@@ -20,3 +40,6 @@ export const REGION_DATA = {
defaultZoom: 14,
showMeters: true,
};
+
+export const getAvailableRegions = (): RegionData[] => [REGION_DATA];
+