maps route link
This commit is contained in:
@@ -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 (
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user