Skip to content

Commit d1ab7b1

Browse files
authored
Merge pull request #308 from andrewcoelho/master
Use address with directions mode if provided
2 parents e33318b + f91a0ba commit d1ab7b1

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
@@ -299,6 +299,8 @@ export const generateMapUrl = ({
299299
url += sourceLatLng ? `&origin=${sourceLatLng}` : '';
300300
if (!googleForceLatLon && title) {
301301
url += `&destination=${encodedTitle}`;
302+
} else if (!googleForceLatLon && address) {
303+
url += `&destination=${address}`;
302304
} else {
303305
url += `&destination=${latlng}`;
304306
}

0 commit comments

Comments
 (0)