Places API

Railway Switch API

The Railway Switch API returns mapped railway switch records from OpenStreetMap, with about 1.2 million records. Each record includes coordinates, OpenStreetMap tags, and contextual fields such as settlement class, climate group, population, and flood risk. Developers and data buyers can use the data to map rail infrastructure and combine it with geographic context.

South Africa, Japan · JSON, GeoJSON, CSV, Parquet

POSThttps://api.outerview.ai/v1/stream
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "railway switch",
    "limit": 50
  }'

Key facts

  • The Railway Switch API contains about 1.2 million records.
  • South Africa accounts for 99.6% of the dataset.
  • Gauteng accounts for 37.8% of records in the state coverage figures.
  • The supplied sample includes railway switch records from Australia.

Quick start

  1. 1. Create an account and generate an API key on the developer platform.
  2. 2. Send it as a Bearer token in the Authorization header.
  3. 3. Query by place, radius or date.

Bulk download

GET https://api.outerview.ai/api/v1/beacon/railway-switch/download?format=geojson

Add &region_slug=… to limit to one place. Formats: csv, geojson, parquet.

Sample records

Real records from the data, trimmed to the main fields.

10 records
NameCountryLatitudeLongitude
Cruce Ferroviario Avenida Santa JuliaChile-34.17655-70.7541
Empalme TabladaArgentina-38.73937-62.26248
Empalme QuerandíesArgentina-37.01161-60.39385
Impofu SidingZimbabwe-18.6786626.92967
Byford Siding SlipAustralia-32.20935116.00738
Byford Siding Split/MergeAustralia-32.20858116.0073
Coldwater Creek JunctionAustralia-41.34194147.11372
"E" FrameAustralia-33.29724149.1022
58 PointsAustralia-33.2917149.10277
"C" FrameAustralia-33.29149149.10281

Railway switch data from OpenStreetMap

Railway switches are movable mechanisms that direct trains from one track to another. This API provides mapped railway switch records sourced from OpenStreetMap contributors.

The data is suited to developers, researchers, and data buyers building rail infrastructure maps, geographic analyses, or datasets that combine rail features with settlement and environmental context.

Coverage and scale

The dataset contains about 1.2 million records. Coverage is concentrated in South Africa, which accounts for 99.6% of records; Japan accounts for 0.4%.

Within South Africa, Gauteng accounts for 37.8% of records, KwaZulu-Natal for 14.9%, and Northern Cape for 9.8%. The supplied sample also includes records from Chile, Argentina, Zimbabwe, and Australia.

Fields in each record

Records include latitude and longitude, all available OpenStreetMap tags in properties, and the source dataset. These fields are listed as filled for 100% of records.

Context fields are settlement_class (city, town, or countryside), climate_group, ghsl_pop_1km_2020 (estimated nearby population), and flood_zone (flood risk). Each of these is also listed as filled for 100% of records.

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • settlement_classCity, town or countryside
  • climate_groupClimate group
  • ghsl_pop_1km_2020How many people live here (people)
  • flood_zoneFlood risk

Filtering and data access

Filter records by region, radius, date, or selected fields. Use stream queries for live requests and bulk downloads when you need a whole dataset.

Available formats are JSON, GeoJSON, CSV, and Parquet. The source is OpenStreetMap contributors, distributed under the ODbL.

Railway switch data use cases

Build maps of mapped railway switches and analyze their geographic distribution. Combine switch locations with settlement class and population context to support regional infrastructure research.

Use coordinates and OpenStreetMap tags to enrich rail-network datasets, compare mapped features across regions, or add flood-risk and climate context to infrastructure analysis.

Access and pricing

The API uses an API key and provides a free tier. Paid plans are available for higher limits and bulk downloads; pricing is not specified here.

Choose JSON or GeoJSON for application workflows, or CSV and Parquet for data analysis and bulk use.

Frequently asked questions

Is there an API for railway switches in South Africa?

Yes. The Railway Switch API provides mapped railway switch records, and South Africa accounts for 99.6% of the dataset. Records include coordinates and OpenStreetMap tags, with additional settlement, climate, population, and flood-risk context.

How many railway switch records does the API include?

The dataset contains about 1.2 million railway switch records. It is sourced from OpenStreetMap contributors and is available in JSON, GeoJSON, CSV, and Parquet formats.

What fields does the Railway Switch API return?

Records include latitude, longitude, OpenStreetMap properties, source dataset, settlement class, climate group, nearby population, and flood zone. The listed fields are filled for 100% of records.

Can I filter railway switches by region or radius?

Yes. The API supports filtering by region and radius, as well as by date and selected fields. The dataset has especially strong coverage in Gauteng, KwaZulu-Natal, and Northern Cape.

How often is the railway switch data updated?

An update frequency is not specified for this dataset. The source is OpenStreetMap contributors, so check the data access documentation for current update information before relying on a particular refresh schedule.

What formats are available for railway switch data?

The API provides JSON, GeoJSON, CSV, and Parquet. JSON and GeoJSON suit application and mapping workflows, while CSV and Parquet are options for analysis and bulk data use.

Can I download the full railway switch dataset?

Yes. Bulk downloads are available on paid plans. The dataset contains about 1.2 million records, and the available formats include JSON, GeoJSON, CSV, and Parquet.

What is the source and license for this data?

The data comes from OpenStreetMap contributors and is distributed under the ODbL. The records contain OpenStreetMap tags in the properties field, alongside coordinates and contextual geographic fields.

Start building with the Railway Switch API

Free to try. Paid plans raise limits and unlock bulk downloads.