Postcode API

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": null,
	"country": {
		 "name": "Switzerland",
		 "iso3Code": "CHE"
	},
	"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

Switzerland building details.

Hide child parameters
number: int

The number for the building.

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

Switzerland street details.

Hide child parameters
name: string

Name of the street

cheCity: struct

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

Hide child parameters
name: string

Name of the city

cheMunicipality: struct

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

Hide child parameters
name: string

Name of the municipality.

cheCanton: struct

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

Hide child parameters
code: string

Code of the canton.

name: string

Name of the canton.