Adding buttons to reverse geocode routes.
This commit is contained in:
1 parent
69148f6e1d
commit
97f11239e8
4 files changed
+66
-11
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ export const _findAddress = async (
|
||||
try {
|
||||
const response = await fetch(
|
||||
`https://nominatim.openstreetmap.org/reverse?lat=${lat}&lon=${lon}&format=jsonv2&addressdetails=1&extratags=1&namedetails=1&accept-language=${locale()}`,
|
||||
{}
|
||||
{ headers: { 'User-Agent': 'Dyomedea' } }
|
||||
);
|
||||
const data = await response.json();
|
||||
console.log({ caller: 'findAddress', lon, lat, data });
|
||||
|
||||
Reference in new issue
Block a user