Skip to content

Commit

Permalink
fix: Merge pull request #294 from OwenMelbz/patch-2
Browse files Browse the repository at this point in the history
bug fixed google maps url for `address` field
  • Loading branch information
tschoffelen authored May 24, 2024
2 parents e39a0a1 + f2314c5 commit 51f4001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const generateMapUrl = ({
url += googleDirectionMode ? `&travelmode=${googleDirectionMode}` : '';
} else {
if (address) {
url = `https://www.google.com/maps/search/?q=${address}`;
url = `https://www.google.com/maps/search/?api=1&query=${address}`;
} else {
// Use "search" as this will open up a single marker
url = 'https://www.google.com/maps/search/?api=1';
Expand Down

0 comments on commit 51f4001

Please sign in to comment.