From 1d7d3bf2aa30a6d4be74f33c7c14fb5f7809e16d Mon Sep 17 00:00:00 2001 From: Meik Date: Tue, 11 Nov 2025 00:18:56 +0100 Subject: [PATCH] maps route link --- src/components/StoreWatchPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/StoreWatchPage.js b/src/components/StoreWatchPage.js index 7648647..ad76b68 100644 --- a/src/components/StoreWatchPage.js +++ b/src/components/StoreWatchPage.js @@ -495,7 +495,8 @@ const StoreWatchPage = ({ return null; } const origin = encodeURIComponent(`${userLocation.lat},${userLocation.lon}`); - const destination = encodeURIComponent(`${storeLat},${storeLon}`); + const storeLabel = row.original.name || row.original.city || `Store ${row.original.id}`; + const destination = encodeURIComponent(`${storeLabel}@${storeLat},${storeLon}`); const mapsUrl = `https://www.google.com/maps/dir/?api=1&origin=${origin}&destination=${destination}&travelmode=driving`; return (