Table of contents

Search on the page

Park & Rail (parking at the railway station)

Brief Description

This data feed contains static data from 500+ car parks with name, number of parking spaces, geographical coordinates, etc. of Swiss Federal Railways (SBB) and some other railways and public transport operators.


Park & Rail data visualized @ geojson.io

Functional Description

The data feed consists of a file of approx. 1200 KByte size which is retrieved daily from an SBB database (PRail). The data feed contains data for 500+ car parks with names, number of parking spaces, geographical coordinates, etc. from the following providers:

  • AVA: Aargau Verkehr AG
  • BLS AG
  • RBS: Regionalbahn Bern-Solothurn
  • SBB: Schweizerische Bundesbahnen AG (Swiss Federal Railways)
  • SOB: Südostbahn
  • zb: Zentralbahn

Technical Description

The files are JSON files encoded in UTF-8 and based on the GeoJSON standard (see https://de.wikipedia.org/wiki/GeoJSON).

The data structure is a GeoJSON ‘FeatureCollection,’ which contains a list (array [ ]) of ‘features’ (the car parks).

Each feature (parking) mainly contains these fields:

  • "id": a technical ID
  • "geometry" a GeoJSON data structure for a point with the WGS 84 coordinates.
  • "properties": Properties, including in particular
    • "displayName": the name of the car park
    • "operator": the operator/provider
    • "bookingSystem": Details of the booking system
    • "address": Street, address, postcode, town/city
    • "capacities": Details of the type and number of parking spaces.

The exact structure can be derived from this example or directly from the data feed:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "id": "97433a48-0376-4e1c-9eca-98ab8d63cadb",
      "geometry": {
        "type": "Point",
        "coordinates": [
          8.595184,
          47.261599
        ]
      },
      "properties": {
        "displayName": "Horgen",
        "operator": "SBB",
        "bookingSystem": {
          "type": "NOVA",
          "id": "163"
        },
        "address": {
          "addressLine": "Bahnhofstrasse 1",
          "city": "Horgen",
          "postalCode": "8810"
        },
        "capacities": [
          {
            "categoryType": "STANDARD",
            "total": 44
          }
        ]
      }
    }
  ]
}

#AutoTranslate