Address details for Switzerland

This page describes only country specific information for the address details response. See get address details documentation for an overview of the address details request and response in general.

Swiss address "getDetails" response example

{
    "language": "de-CH",
    "address": {
        "country": "Switzerland",
        "locality": "St. Gallen",
        "street": "Paradiesstrasse",
        "postcode": "9000",
        "building": "2 a",
        "buildingNumber": 2,
        "buildingNumberAddition": "a"
    },
    "mailLines": [
        "Paradiesstrasse 2 a",
        "9000 St. Gallen"
    ],
    "location": {
        "latitude": 47.419063,
        "longitude": 9.363453,
        "precision": "Address"
    },
    "isPoBox": false,
    "country": {
        "name": "Switzerland",
        "iso3Code": "CHE",
        "iso2Code": "CH"
    },
    "details": {
        "cheBuilding": {
            "number": 2,
            "addition": "a",
            "validated": false
        },
        "cheStreet": {
            "name": "Paradiesstrasse"
        },
        "cheCity": {
            "name": "St. Gallen"
        },
        "cheMunicipality": {
            "name": "St. Gallen"
        },
        "cheCanton": {
            "code": "SG",
            "name": "St. Gallen"
        }
    }
}

Response property "details" for country code "CHE"

cheBuilding: struct

hide children Switzerland building details.

number: int or null

The number for the building, null if not available.

addition: string or null

The number addition for the building if available, null otherwise.

validated: boolean

Indication whether the building could be validated. When true it means that the combination of building number and building number addition exists.

cheStreet: struct

hide children Switzerland street details.

name: string

Name of the street

cheCity: struct

hide children Switzerland city details. (German: Ortschaft, French localité, Italian: località, Romansh: localitad)

name: string

Name of the city

cheMunicipality: struct

hide children Switzerland municipality details. (German: Gemeinde, French commune, Italian: comune, Romansh: vischnanca)

name: string

Name of the municipality.

cheCanton: struct

hide children Switzerland canton details. (German: Kanton, French canton, Italian: cantone, Romansh: chantun)

code: string

Code of the canton.

name: string

Name of the canton.