Adding buttons to reverse geocode routes.

This commit is contained in:
vdv committed 2023-01-05 18:27:20 +01:00
1 parent 69148f6e1d
commit 97f11239e8
4 files changed
+66 -11

No files matched your search

+1 -1
View File
@@ -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 });