Skip to content

getFormatedAddress doesnt return a cityname for City States (e.g Hamburg) #264

Description

@tobiasquadflieg

https://nominatim.openstreetmap.org/search/Kurt-Adams-Platz%20Hamburg%20Deutschland?format=json&addressdetails=1

[
    {
        "place_id": 102844851,
        "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
        "osm_type": "way",
        "osm_id": 18295072,
        "boundingbox": [
            "53.507832",
            "53.5081895",
            "10.209529",
            "10.2107912"
        ],
        "lat": "53.507832",
        "lon": "10.2099617",
        "display_name": "Kurt-Adams-Platz, Lohbrügge, Bergedorf, Hamburg, 21031, Deutschland",
        "class": "highway",
        "type": "residential",
        "importance": 0.6199999999999999,
        "address": {
            "road": "Kurt-Adams-Platz",
            "suburb": "Lohbrügge",
            "city_district": "Bergedorf",
            "state": "Hamburg",
            "ISO3166-2-lvl4": "DE-HH",
            "postcode": "21031",
            "country": "Deutschland",
            "country_code": "de"
        }
    }
]

OSM delivers for city states only the state field.
i dont know if this issue should be handled here, if not i will create a new issue over at OSM.

thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions