mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 23:09:37 +02:00
Implement reverse geocoding search functionality and update type definitions
This commit is contained in:
parent
ec2b285d50
commit
042d034594
5 changed files with 44 additions and 32 deletions
|
@ -81,7 +81,7 @@
|
|||
}
|
||||
|
||||
const fetchLocation = async (query: string) => {
|
||||
let res = await fetch(`https://nominatim.openstreetmap.org/search?q=${query}&format=jsonv2`, {
|
||||
let res = await fetch(`/api/reverse-geocode/search/?query=${query}`, {
|
||||
headers: {
|
||||
'User-Agent': `AdventureLog / ${appVersion} `
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue