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. Create an account and generate an API key on the developer platform.
- 2. Send it as a Bearer token in the
Authorizationheader. - 3. Query by place, radius or date.
Bulk download
GET https://api.outerview.ai/api/v1/beacon/railway-switch/download?format=geojsonAdd ®ion_slug=… to limit to one place. Formats: csv, geojson, parquet.
Sample records
Real records from the data, trimmed to the main fields.
| Name | Country | Latitude | Longitude |
|---|---|---|---|
| Cruce Ferroviario Avenida Santa Julia | Chile | -34.17655 | -70.7541 |
| Empalme Tablada | Argentina | -38.73937 | -62.26248 |
| Empalme Querandíes | Argentina | -37.01161 | -60.39385 |
| Impofu Siding | Zimbabwe | -18.67866 | 26.92967 |
| Byford Siding Slip | Australia | -32.20935 | 116.00738 |
| Byford Siding Split/Merge | Australia | -32.20858 | 116.0073 |
| Coldwater Creek Junction | Australia | -41.34194 | 147.11372 |
| "E" Frame | Australia | -33.29724 | 149.1022 |
| 58 Points | Australia | -33.2917 | 149.10277 |
| "C" Frame | Australia | -33.29149 | 149.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.
latLatitudelngLongitudepropertiesAll OpenStreetMap tags for the placesourceSource datasetsettlement_classCity, town or countrysideclimate_groupClimate groupghsl_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.