Skip to content

script

Attributes:

Attributes

request_url module-attribute

request_url = 'https://nominatim.openstreetmap.org/search'

langs module-attribute

langs = join(['ch', 'de', 'fr', 'it', 'at'])

params module-attribute

params = {
    "amenity": "Neue Regensburger Huette",
    "format": "jsonv2",
    "limit": 1,
    "extratags": True,
    "countrycodes": langs,
    "accept-language": langs,
}

res module-attribute

res = json()

hut module-attribute

hut = res[0]