Structuring station data in GeoJSON for the map
A station layer gives a transport map more than pins: it connects places, services and operational context. Station GeoJSON provides a portable way to store that information, while a carefully chosen schema keeps the same records usable in consumer apps, council planning tools, tourism products and logistics dashboards.
For Australian transport networks, the difficult part is consistency rather than drawing a marker. Operators publish different identifiers, fares, accessibility fields and interchange rules. A map should preserve those distinctions, document its sources and make updates predictable instead of silently mixing incompatible records.
| Mapping need | Recommended structure | Why it works | Common failure |
|---|---|---|---|
| Station marker | Point feature | Provides a precise, simple location | Reversing longitude and latitude |
| Interchange | Parent Point with linked child features | Preserves entrances, platforms and mode changes | Treating each platform as an unrelated station |
| Large terminal | MultiPoint or bounded Polygon | Represents grouped entrances or a defined footprint | Using a broad polygon that hides the boarding point |
| Route context | LineString or MultiLineString | Shows the relationship between stations | Treating straight segments as real rail alignment |
Choosing the right geometry for each station
GeoJSON uses longitude first and latitude second, expressed in WGS84 decimal degrees under RFC 7946. A standard station marker is therefore a Point such as [151.2093, -33.8830]. Australian agency files may use GDA2020, so confirm the source coordinate reference system and transform it to WGS84 where required. Round coordinates to a sensible source precision, usually no more than six decimal places, rather than implying false accuracy.
Most stations work best as one feature with one stable station_id. Major sites can require extra detail: Sydney’s Central Station or Melbourne’s Southern Cross may need separate points for platforms, entrances or bus stands, linked by a parent interchange ID. The Istanbul metro map is a useful visual check for this hierarchy because dense crossings quickly expose duplicate markers and disconnected entrances.
Use separate Point features when each entrance needs its own identity; use MultiPoint when entrances are intentionally grouped. Reserve Polygon for a genuinely bounded terminal footprint, because a polygon over an entire precinct can mislead users who need a boarding point. Keep platform geometry subordinate to a consistent station identity.
Defining properties that survive real use
A useful schema separates identity, classification and service details. Include station_id, name, operator_id, modes, route_ids, suburb, timezone, opening_hours and a four-state wheelchair_access value such as full, partial, none or unknown. Store official operator codes where available, but derive display labels separately when a client needs several languages or spellings.
A minimal FeatureCollection can look like this:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "AU-NSW-001",
"properties": {
"station_id": "AU-NSW-001",
"name": "Sydney Central",
"operator_id": "sydney-trains",
"modes": ["rail", "light_rail", "bus"],
"wheelchair_access": "full"
},
"geometry": {
"type": "Point",
"coordinates": [151.2093, -33.8830]
}
}
]
}
Keep property types fixed across the file: arrays for multiple modes, strings for route references and explicit null for genuinely unavailable values. Avoid placing timetables inside every station; link to a scheduled-service dataset and give it a version date. This keeps the GeoJSON small and prevents stale departure information from being presented as live.
Reflecting Australian transport networks
Sydney’s rail, metro, light rail, bus and ferry interchange patterns need mode-aware records, while Melbourne’s extensive tram network creates thousands of stop-level points. Brisbane’s TransLink network adds another naming pattern, and regional services across Australia can sit under state, metropolitan or private operators. The operator_id and modes fields should carry those distinctions.
Everyday travel habits reinforce the need for stable IDs. NSW passengers use Opal and daily or weekly caps; Victorians rely on Myki; Brisbane journeys use TransLink SEQ fares or Go Card, with different balances and concession rules. A map may display those products, but fare details should live in a dedicated reference dataset rather than be copied into each station feature.
The local market includes visitor maps, accessibility planners, property tools and delivery services. Stations are useful landmarks for route optimisation, yet a pickup beside a busy interchange may have restricted vehicle access. Teams exploring that commercial use can use the DHL Startup Lab as a reference for location-led logistics, then test station data against the access constraints their use case actually faces.
Connecting stations to routes without losing accuracy
When you also publish routes, treat stations, lines and services as related features. A route segment can carry line_id, operator_id, mode, from_station_id, to_station_id and stop_sequence, while its geometry describes the alignment. Join records through persistent IDs rather than station names, which may be duplicated across suburbs or changed by an operator.
Use surveyed route shapes, official GIS lines or GTFS shape data when available. A straight LineString between consecutive stops is acceptable for a schematic diagram only, not for implying that the train follows that line. MultiLineString handles branches or temporary diversions, while direction, timetable frequency and express patterns belong in route metadata and scheduled-service files.
Validating the file and checking legal responsibilities
Validate geometry, structure and business rules before deployment. Check that every feature has a unique ID, coordinates fall within Australia’s valid ranges, geometry types are consistent, and interchange relationships point to existing stations. Run the file through tools such as geojsonhint or ogrinfo and a schema validator; RFC 7946 discourages a custom crs member because geographic coordinates use WGS84.
Public station metadata is generally non-personal, but origin–destination, smartcard and crowd datasets can reveal identifiable travel patterns. The Privacy Act 1988 and state regimes such as the Privacy and Personal Information Protection Act 1988 in NSW can apply, depending on the operator and dataset. Minimise collection, aggregate where possible, suppress small groups and keep passenger-level records out of the station file.
Confirm the licence attached to each operator’s source and preserve required attribution. A list of factual station names differs from a curated operator database, and terms may limit redistribution or require periodic refreshes. The Copyright Act 1968 and contract terms can affect derived datasets. Record source URLs, licences, extraction dates and update frequency in dataset metadata.
Turning the dataset into a dependable map
Render stations according to zoom and mode, cluster dense points, and expose useful properties without crowding the screen. A selected feature can show the official name, services, accessibility information and a source link, while a clear legend explains symbols and line colours. Include keyboard navigation and text alternatives so the map remains usable beyond a desktop mouse.
Keep the publication pipeline small: pull from an authoritative source, transform to the agreed schema, validate, review and publish a versioned file. Compare each release with the previous one to catch moved entrances, renamed stations and missing services. Create a ten-station pilot FeatureCollection from one operator’s open data, validate it against the schema and load it into the target map before extending coverage.