Skip to content

Commit 03b9ff7

Browse files
committed
Use address with directions mode if provided
1 parent 751c5ff commit 03b9ff7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ export const generateMapUrl = ({
291291
url += sourceLatLng ? `&origin=${sourceLatLng}` : '';
292292
if (!googleForceLatLon && title) {
293293
url += `&destination=${encodedTitle}`;
294+
} else if (!googleForceLatLon && address) {
295+
url += `&destination=${address}`;
294296
} else {
295297
url += `&destination=${latlng}`;
296298
}

0 commit comments

Comments
 (0)