openstreetmapAPIexample
Script
v11
Fork
1
2
3
4
5
6
7
import
{
fetch
}
from
"https://esm.town/v/std/fetch"
;
export
const
openstreetmapAPIexample
=
(
async
(
)
=>
{
return
(
await
fetch
(
"https://api.openstreetmap.org/api/0.6/node/1"
,
{
headers
:
{
accept
:
"application/json"
}
,
}
)
)
.
json
(
)
;
}
)
(
)
;