Skip to content

Commit

Permalink
fix: correct base url
Browse files Browse the repository at this point in the history
  • Loading branch information
lpernelle-woosmap committed Jan 6, 2025
1 parent bf3491e commit c00cad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/localities-search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const fetchLocalitiesSearch = async (input: any): Promise<any> => {
try {
const response = await fetch(
`
https://api.woosmap.com//localities/search?types=point_of_interest|locality|admin_level|postal_code|address&input=${encodeURIComponent(input)}&location=${center.lat()},${center.lng()}&radius=100000&key=woos-f3399eaa-1f01-33cd-a0db-ce1e23b7320d&components=country%3Agb`
https://api.woosmap.com/localities/search?types=point_of_interest|locality|admin_level|postal_code|address&input=${encodeURIComponent(input)}&location=${center.lat()},${center.lng()}&radius=100000&key=woos-f3399eaa-1f01-33cd-a0db-ce1e23b7320d&components=country%3Agb`
);
return await response.json();
} catch (error) {
Expand Down

0 comments on commit c00cad1

Please sign in to comment.