aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/planner.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/routes/planner.tsx')
-rw-r--r--src/frontend/app/routes/planner.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/frontend/app/routes/planner.tsx b/src/frontend/app/routes/planner.tsx
index b1a9813..9e44425 100644
--- a/src/frontend/app/routes/planner.tsx
+++ b/src/frontend/app/routes/planner.tsx
@@ -9,7 +9,7 @@ import { useLocation } from "react-router";
import { useApp } from "~/AppContext";
import LineIcon from "~/components/LineIcon";
import { PlannerOverlay } from "~/components/PlannerOverlay";
-import { REGION_DATA } from "~/config/RegionConfig";
+import { APP_CONSTANTS } from "~/config/constants";
import { usePageTitle } from "~/contexts/PageTitleContext";
import { type Itinerary } from "~/data/PlannerApi";
import { usePlanner } from "~/hooks/usePlanner";
@@ -392,7 +392,7 @@ const ItineraryDetail = ({
if (!arrivalsByStop[stopKey]) {
try {
const resp = await fetch(
- `${REGION_DATA.consolidatedCirculationsEndpoint}?stopId=${encodeURIComponent(leg.from.stopCode || leg.from.stopId)}`,
+ `${APP_CONSTANTS.consolidatedCirculationsEndpoint}?stopId=${encodeURIComponent(leg.from.stopCode || leg.from.stopId)}`,
{ headers: { Accept: "application/json" } }
);
@@ -424,9 +424,11 @@ const ItineraryDetail = ({
ref={mapRef}
initialViewState={{
longitude:
- origin?.lon || (REGION_DATA.defaultCenter as [number, number])[0],
+ origin?.lon ||
+ (APP_CONSTANTS.defaultCenter as [number, number])[0],
latitude:
- origin?.lat || (REGION_DATA.defaultCenter as [number, number])[1],
+ origin?.lat ||
+ (APP_CONSTANTS.defaultCenter as [number, number])[1],
zoom: 13,
}}
mapStyle={mapStyle}