Skip to content

Commit 51f4001

Browse files
authored
fix: Merge pull request #294 from OwenMelbz/patch-2
bug fixed google maps url for `address` field
2 parents e39a0a1 + f2314c5 commit 51f4001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export const generateMapUrl = ({
305305
url += googleDirectionMode ? `&travelmode=${googleDirectionMode}` : '';
306306
} else {
307307
if (address) {
308-
url = `https://www.google.com/maps/search/?q=${address}`;
308+
url = `https://www.google.com/maps/search/?api=1&query=${address}`;
309309
} else {
310310
// Use "search" as this will open up a single marker
311311
url = 'https://www.google.com/maps/search/?api=1';

0 commit comments

Comments
 (0)