Sydney Bus Stops

Hello Oceania OSM Community!

I’ve noticed that bus stops are something that Sydney’s OSM is quite lacking in - and over the years I’ve added a couple bus stops if I’m editing something else in the area. A couple months ago, I started using the GTFS feed for some data analysis I was conducting, and am now quite well versed in the intricacies of it. I’m also a frequent bus user and have travelled quite a large number of routes - I thought I’d put that to use and finally add the missing bus stops.

As per the Import Guidelines, I’ve documented my proposal here and done Route 753 as an example.
The import would not be a blind all-at-once, but rather in groups of 10 or so routes at a time, so that I can ensure nothing weird happens.

Keen to hear your thoughts on it!

Kind Regards,
Sud

1 Like

Hi Sud,

I’ve created and maintain PTNA supporting QA on OSM public transport relations. GTFS is also supported and since Jan 2024 a comparison between GTFS trips and OSM routes can be done as well.

I can easily add Sydney for the OSM data. For GTFS: it depends on the license of the data. Is the license compatible with OSM? I didn’t check that yet.

Regards,
Toni

First up: Yes please to more accurate bus data for Sydney!

I’ve also noticed a lot of incomplete or just plain wrong data for bus stops in Sydney. I was originally surprised they weren’t already being auto-imported from official sources.
When I went digging, I found the project GitHub - ScottWalkerAU/tfnsw-gtfs-to-osm: Process TfNSW GTFS data for OSM as per https://wiki.openstreetmap.org/wiki/TfNSW_Data_Imports, which looked promising but doesn’t seem to be receiving updates any more.

With that in mind, I have a couple of thoughts on this:

  1. These imports could remove some outdated stops that are already part of route relations, so there might still need to be some editing of routes.
  2. There’s a user called Lockstar who has also been systematically fixing Sydney’s bus route relations recently (Changesets by Lockstar | OpenStreetMap). It would be worth reaching out to coordinate efforts.

Waiver has been signed https://wiki.openstreetmap.org/w/images/3/37/TfNSW_OSM_CCBY_Signed_Waiver.pdf

2 Likes

Great, I’ll work on that today.

It’s 9:30AM, time for breakfast.

Toni:
As TheSwavu mentioned, the Waiver has been signed and opendata for nsw is available for use on OSM. Your addition of Sydney would be very welcome!

Gillifrey:
Yeah, I’ve used that wiki page in my method too :smiley:
As you mentioned, the code in that repo is some 2 years un-updated though, and I’m more familiar with Python than Ruby so I’m not interacting with it much. Regarding:

  1. With the conflation method I’m using now, in general no bus stops will be removed. The most destructive thing that could happen is a rename, so that should be fine?
  2. That’s great, I’ll send them a message! I was apprehensive about the volatility of bus routes, but I guess it’s fine then.
1 Like

As per feedback on the OSMWorld Discord group, I will remove the gtfs:stop_id field, and add network=Transport Buses + network:wikidata=Q5001345

Downloading the GTFS requires creating an account and login.

This breaks PTNA’s automated handling of GTFS data.
Can’t check for updates and download new feed versions w/o login or w/o providing a token.

Is there an alternative way?

You can bypass the need for an account by using the data.gov.au mirror:

https://data.gov.au/dataset/ds-nsw-4c5ffe87-f995-4e8e-aeec-d69251dfea24/details?q=gtfs

This only works for the dump of GTFS data across all modes of transport for the entire state of NSW though, not tailored specifically for Sydney Metropolitan Bus routes.

This file also contains School Buses, so you’ll have to prune those as well.

Thanks, that works fine for me.

I’ll nevertheless take the GTFS data “as is” and store that as “AU-NSW-TfNSW” - same procedure as for CH, NL and other countries which provide nation-wide GTFS data.
The analysis will be called “AU-NSW-Sydney”, covering all types of public transport in the Sydney metropolitan area, New South Wales.

I prepared a template with 2 examples for the CSV list of routes in the OSM wiki (location can be changed though).

Please allow some time for the integration of the GTFS data …

Edit: change AU-NSW-GTFS to AU-NSW-TfNSW to reflect owner of the data

1 Like

Yep, if the node itself stays intact and just its tags change, there’s no concern for the route relations. :+1:

1 Like

… done: see PTNA: news for Public Transport Network Analysis

1 Like

Will it spot mapped stops that are actually no longer there?

You see frequent Notes to say “this stop is no longer operating” so it would be great if this could/would clean old ones up! :grinning:

Unfortunately not, unless I decide to remove all bus stops in an area and replace then with new ones. That is probably too destructive especially for the pre-existing relations.

1 Like

I doubt that would every be accepted. It’s good practice to keep the history of objects.

I think the most we should do is possibly add notes to ask people on the ground to verify.

I noticed in OSMCha that an existing bus stop was deleted and in favour of another one just recently introduced in OSMCha

It’s good practice to keep the history of objects, will your proposed conflation process ensure that existing bus stop objects are retained and not deleted in favour of new ones placed by yourself?

Can you document the policy around conflicting tags and locations?

In my view, existing tags, especially if from a survey should be preserved and instead a new note / changeset comment could be raised to question the difference.

Where the location differs, I think it can be improved if the imagery is clear.

Ok, I will ensure to not change the location of existing bus stops, or delete them.

I’m not saying you shouldn’t update the location, just don’t blindly reset all the locations to match the GTFS data.

1 Like

This is PTNA’s advice when comparing a GTFS trip with an OSM route

Before fixing potential errors in OSM data: consider that GTFS data can be wrong as well!

And that’s so true! My experiences.

Hi Sudface,
Fully support the approach to apply a consistent upload of bus stop data. Some things to consider - field checking/local knowledge will be needed for some locations as the dataset is not completely spatially accurate. Some sites also have a lot of data already entered (such as shelter, bench, lighting, accessibility info etc) - need to make sure this info that exists is not lost. Many stops too have relations with bus routes - will this be preserved for existing stops?

Cheers, Lockstar