Swisstopo Swiss Address File
An address in the Swisstopo dataset, which covers Switzerland and Liechtenstein.
Fields are grouped by the upstream Swisstopo product they come from: the building address directory (gebaeudeadressverzeichnis), the street directory (strassenverzeichnis) and the official directory of towns and cities (amtovz).
Records marked as multilingual upstream are split into one address per street name, so language identifies the language of the street name.
Example Record
| Field | Example | Type |
|---|---|---|
id | swt_102410972|de | string |
dataset | swt | string |
country | Switzerland | string |
country_iso | CHE | string |
country_iso_2 | CH | string |
language | de | string |
canton | Basel-Stadt | string |
address | 15.1 | string |
line_1 | Brohegasse 15.1 | string |
line_2 | Empty in this example | string |
latitude | 47.571268381201655 | number |
longitude | 7.663107983521497 | number |
adr_egaid | 102410972 | number |
str_esid | 10025136 | number |
bdg_egid | 243057973 | number |
adr_edid | 0 | number |
stn_label | Brohegasse | string |
adr_number | 15.1 | string |
bdg_category | non_residential | string |
bdg_name | Empty in this example | string |
zip_label | 4126 Bettingen | string |
com_fosnr | 2702 | number |
com_name | Bettingen | string |
com_canton | BS | string |
adr_status | real | string |
adr_official | false | boolean |
adr_modified | 23.07.2024 | string |
adr_easting | 2616891.820 | string |
adr_northing | 1268975.560 | string |
str_type | Street | string |
str_status | real | string |
str_official | true | boolean |
str_modified | 23.07.2024 | string |
str_easting | 2616922.086 | string |
str_northing | 1268999.001 | string |
ortschaftsname | Bettingen | string |
plz4 | 4126 | string |
zusatzziffer | 00 | string |
zip_id | 2531 | number |
gemeindename | Bettingen | string |
bfs_nr | 2702 | number |
kantonskürzel | BS | string |
sprache | de | string |
validity | 2008-07-01 | string |
{"id": "swt_102410972|de","dataset": "swt","country": "Switzerland","country_iso": "CHE","country_iso_2": "CH","language": "de","canton": "Basel-Stadt","address": "15.1","line_1": "Brohegasse 15.1","line_2": "","latitude": 47.571268381201655,"longitude": 7.663107983521497,"adr_egaid": 102410972,"str_esid": 10025136,"bdg_egid": 243057973,"adr_edid": 0,"stn_label": "Brohegasse","adr_number": "15.1","bdg_category": "non_residential","bdg_name": "","zip_label": "4126 Bettingen","com_fosnr": 2702,"com_name": "Bettingen","com_canton": "BS","adr_status": "real","adr_official": false,"adr_modified": "23.07.2024","adr_easting": "2616891.820","adr_northing": "1268975.560","str_type": "Street","str_status": "real","str_official": true,"str_modified": "23.07.2024","str_easting": "2616922.086","str_northing": "1268999.001","ortschaftsname": "Bettingen","plz4": "4126","zusatzziffer": "00","zip_id": 2531,"gemeindename": "Bettingen","bfs_nr": 2702,"kantonskürzel": "BS","sprache": "de","validity": "2008-07-01"}Every field is documented below.
Core Metadata
idstring- ID
datasetstring- DatasetEnum
- "swt"
countrystring- Country
Full country names (ISO 3166)
Enum- "Switzerland"
- "Liechtenstein"
country_isostring- Country ISO
3 letter country code (ISO 3166-1)
Enum- "CHE"
- "LIE"
country_iso_2string- Country ISO 2
2 letter country code (ISO 3166-1)
Enum- "CH"
- "LI"
languagestring- Language
Language represented by 2 letter ISO Code (639-1)
Enum- "de"
- "fr"
- "it"
- "rm"
cantonstring- Canton
Canton name, in the language of the address (e.g.
"Basel-Stadt","Grigioni","Grischun"). For Liechtenstein addresses this is the district.Can be empty string
""if not present.
Address Components
addressstring- Address
House number. Same value as
adr_number.Can be empty string
""if not present. line_1string- Address Line 1
First address line. The building name where present, otherwise the street name and house number.
Can be empty string
""if not present. line_2string- Address Line 2
Second address line. The street name and house number where
line_1holds a building name.Can be empty string
""if not present.
Geolocation
latitudestring- Latitude
longitudestring- Longitude
Building Directory (Gebäudeadressverzeichnis)
adr_egaidinteger- Address EGAID
Federal building address identifier (Eidgenössischer Gebäudeadressidentifikator).
bdg_egidinteger- Building EGID
Federal building identifier (Eidgenössischer Gebäudeidentifikator).
adr_edidinteger- Address EDID
Entrance identifier within the building.
stn_labelstring- Street Name
Street name label. For French and Italian addresses the leading street type is lowercased (e.g.
"rue de la Gare"). adr_numberstring- Address Number
House/address number (e.g.
"12","12A").Can be empty string
""if not present. bdg_categorystring- Building Category
Building category from the Federal Building and Dwelling Register (GWR), e.g.
"residential","non_residential". bdg_namestring- Building Name
Building name.
Can be empty string
""if not present. zip_labelstring- ZIP Label
Postal code and locality label (e.g.
"8001 Zürich"). com_fosnrinteger- Commune FOS Number
Federal municipality number assigned by the Federal Statistical Office (FSO/BFS).
com_namestring- Commune Name
Municipality name.
com_cantonstring- Commune Canton
Canton abbreviation (e.g.
"ZH","BE").Can be empty string
""if not present. adr_statusstring- Address Status
Address status from the GWR, e.g.
"real","projected". adr_officialboolean- Address Official
Whether the address is an official address.
adr_modifiedstring- Address Modified
Date the address record was last modified, formatted
DD.MM.YYYY. adr_eastingstring- Address Easting
Easting coordinate of the address in the Swiss coordinate system CH1903+/LV95 (EPSG:2056), in metres.
adr_northingstring- Address Northing
Northing coordinate of the address in the Swiss coordinate system CH1903+/LV95 (EPSG:2056), in metres.
Street Directory (Strassenverzeichnis)
str_esidinteger- Street ESID
Federal street identifier (Eidgenössischer Strassenidentifikator). Joins the address to the street directory.
str_typestring- Street Type
Street type, e.g.
"Street","Area". str_statusstring- Street Status
Street status, e.g.
"real","projected". str_officialboolean- Street Official
Whether the street name is official.
str_modifiedstring- Street Modified
Date the street record was last modified, formatted
DD.MM.YYYY. str_eastingstring- Street Easting
Easting coordinate of the street centroid in the Swiss coordinate system CH1903+/LV95 (EPSG:2056), in metres.
str_northingstring- Street Northing
Northing coordinate of the street centroid in the Swiss coordinate system CH1903+/LV95 (EPSG:2056), in metres.
Locality Directory (Ortschaftenverzeichnis)
ortschaftsnamestring- Locality Name
Locality name from the Official Directory of Towns and Cities (Amtliches Ortschaftenverzeichnis).
Can be empty string
""if the address does not match a locality record. plz4string- Postcode (PLZ4)
4-digit Swiss postal code, zero padded.
Can be empty string
""if the address does not match a locality record. zusatzzifferstring- Postcode Suffix
2-digit supplementary code distinguishing localities that share a 4-digit postal code.
nullif the address does not match a locality record. zip_idinteger- ZIP ID
Unique identifier for the postal code record.
nullif the address does not match a locality record. gemeindenamestring- Municipality Name
Municipality name (Gemeindename) from the locality directory.
nullif the address does not match a locality record. bfs_nrinteger- BFS Number
Federal municipality number assigned by the Federal Statistical Office (BFS-Nr).
nullif the address does not match a locality record. kantonskürzelstring- Canton Abbreviation
Canton abbreviation from the locality directory (e.g.
"ZH","GE").Can be empty string
""if not present. sprachestring- Locality Language
Language of the address, mirroring
language. validitystring- Validity
Date the postal code record became valid, formatted
YYYY-MM-DD.