UK: NaPTAN locations which have moved since initial import

tldr: Source NaPTAN location have changed, initial imported bus stop hasn’t been modified, how to handle updating these bus stops to the new location, do we update, main issue area is Leicestershire (East Midlands).

Hi,

I’m the creator of the OSM≠NaPTAN compare tool, it’s aim is to compare NaPTAN public transport data with what’s held within OSM allowing users to update (sync) NaPTAN tags with OSM marked bus stops as well as adding new stops.

While the project is currently on hold for any active development, I’ve been tinkering with the data and wanted to know how much a bus stop has moved since it was initial imported in 2009 which has spiraled into finding NaPTAN stops which have moved BUT the original imported bus stop as not.

I’m waiting to hear back from the NaPTAN mailbox (naptan.nptg@dft.gov.uk) regarding a historic data request for 2009 onward (requested 2026-10-13), with the aim to see if there was a error with the initial imported locations (unlikely) or these locations have changed within NaPTAN and/or the AtcoCode’s are been reused elsewhere, going against the schema.

Until then I’ve taken the initial import bus stop location as the actual NaPTAN location at the time. Below are my findings:

Overview of the query and data used
  1. Gathered all the change-sets from the NaPTAN OSM user account.
    If there was over accounts used to import NaPTAN back in the day let me know and I'll pull them in.
  2. Download each change-set from the OSM API. (User ID: 104459)
  3. Import the change-sets and changes into a database.
  4. Join initial node id with the current known list of OSM bus stops, removing any which don't matched or have since been deleted/tags removed.
  5. Join NaPTAN stops based on the current AtcoCode, do this for only active NaPTAN stops. There are a few cases where the initial AtcoCode has been changed (visable in the none filtered resultes).
  6. Join on NPTG admin area and region based on the current AtcoCode, just to gauge the number moved stops in a area.
  7. Calculate the distance between:
    - initial OSM location and current OSM location,
    - current NaPTAN location and initial OSM location,
    - current NaPTAN location and current OSM location.
  8. Filter down the results:
    - The current OSM node has moved 30 or less meters since initial import.
    - The distance between current NaPTAN location and initial OSM location is 400 or more meters.
  9. Order highest to lowest by the distance between the current NaPTAN location and initial OSM location.

The query resulted [1] in 353 initial imported bus stops which still exist, matches a currently active NaPTAN record, has moved less then 30 meters over the years and the matching NaPTAN location is now 400 or meters away.

The results are attached to this post or linked somewhere.
distance_between_initial_and_current_202610151344.csv (184.4 KB)

Most of these bus stops are located in Leicestershire (East Midlands). To my knowledge of the NaPTAN schema AtcoCodes should not be reused and only moved slightly, not long distances like identified here.

The furthest moved NaPTAN AtcoCode is 260017700 on node 562724473 at over 31km (zoom), this node has not been modified since the initial import.

At the time ‘CUS’ type bus stops didn’t get highway=bus_stop tags so they don’t appear on rendered tiles, that could be one reason why there’s been no change or could it be because its in a remote area and little mapping activity in the area, who knows.


I’m opening this up for review and discussion;


There could be a case to be had for a mass edit on none modified stops in Leicestershire moving them to the current NaPTAN location, maybe updating tags to use PTv2. This can be expanded to OSM stops which have not moved but have been modified, e.g. PTv2, shelter, bin etc tags added.

There are a few issues I can see:

  • Need to make sure they are isolated nodes, not joined to any ways.
  • Is there a newly mapped bus stop at the new NaPTAN location, how to handle those cases?
  • How would this effect relations, old site=stop_area without a ‘stop’ role on a node should be Ok, routes and ‘stop’ role nodes will be tricky.

Setting up a MapRoulette challenge

  • Will something like this work in MapRoulette or will it be to complicated?

We can’t guarantee the new NaPTAN location is correct either, one example would be the following but there is likely be more.

node 469781355 has only slightly moved since the initial import but the NaPTAN has changed to a field near St Margaret Clitherow RC Primary School (see marker)

Final thought:
Unable to fully trust the source data and unable to confirm the mapped bus stop exists without a survey, but then there could be no indication that a bus stops there, what can we do? Update OSM, delete from OSM, re-import the NaPTAN data or nothing.


  1. OSM Data up to: 2026-10-14 20:21:12, NaPTAN data up to: 2026-10-15 07:58:20 ↩︎

2 Likes

I didn’t know about your tool so I got excited but then I realised it doesn’t cover Ireland but I always map Translink bus stops and their NaPTAN codes manually anyways because the positional accuracy of their Open Data is too low in most cases to do an automated import. :see_no_evil_monkey:
#BestStoryEver

That looks to be a helpful tool.

I have moved quite a few bus stops that were imported from NaPTAN, but generally over a relatively small distance (10s of metres). This is almost always where there there is a shelter, and it is visible from aerial imagery (and then often has a UPRN too, adding a further location point); or where the stop was previously in an impossible position (such as on the wrong side of the road or significantly into a field) and the correct position is visible.

Is there a good way to record that a location has been verified, and potentially when, without indicating that all the other details have been checked.

1 Like

There is a naptan:verified tag. Sometimes people set that to yes, sometimes they remove it. Also, if someone has added e.g. a bench tag via StreetComplete you can use that to infer “verification of a stop in that rough area” at a known date.

2 Likes

Thank you. I have updated the naptan:verified tag previously, but this has always seemed a bit insincere from a desktop survey.

Checking on the addition of benches (or similar tags) is a good idea - I’ll look out for these.

Would your tool be able to use Translink’s data set here Portal | <!-- -->Translink Bus Stop List so that it also covers Northern Ireland?

@ramthelinefeed I’ll have a look into getting Northern Ireland into the tool, thanks for linking the dataset.

How a bus stop becomes verified within the can be found on the about page. (Just noticed a few typos there, will get them updated shortly)

In short if its got the following tagged
highway=bus
public_transport=platform
bus=yes,
Is linked an active naptan:AtcoCode within 80 meters
naptan:verified has been removed or set to yes
A survey:date tag is within 30 days of the OSM node being moved, this locks the location, if its moved and the survey:date tag has not been updated the new location is classed as not verified.

Just a small update regarding the historic NaPTAN data request, they have got it and seem interested in helping but as I’m just a individual using a personal account to access it (not part of a origination) it needs to be passed higher up for approval.

Thanks @OneLoneRanger
As I was saying, I find the positional accuracy of Translink’s NaPTAN data to be rather poor, so for that reason I wouldn’t propose bulk import of their stops into OSM. (It’s often plus or minus 100 metres… which is enough to put a stop on the wrong block or side of a street junction in urban areas, or in the middle of a field somewhere in rural ones) - this seems to be due to them not using enough significant figures in their co-ordinates in the original dataset - but when they add new stops to the set these days, they seem to have increased it by a couple of significant figures, improving the accuracy)
But I’ve made some head way over the past few years just manually adding stops that I’ve surveyed, and tagging them with a ATCO code from Translink’s data (just working from their CSV file in Excel) - attached is an Overpass Turbo screenshot of NI stops with an ATCO code (I think I’m at roughly a couple of thousand manually added stops, out of ~18,000 total!)
Having the Translink data available in your tool might inspire some other editors to join the fun!
I would certainly jump at the chance to be able to validate all my manual tagging!

1 Like

I’ve had a look at the Translink data provided on OpenDataNI website, it lacking a bit of detail; direction of travel, type of stop, its current status (active, inactive, deleted/archived) and when the it was last updated.

That being said I’ve got it imported and working locally as a one off, give me a few days to tidy up a few loose ends then it will go live. It will require a a bit of down time (approx 2 hours) to rebuild the database (going from GB to UK GeoFabrik source)

As a note, there may be API access to the data via Public Transport API | Translink

Sorry taking away the focus from the main topic

Wowsers, thanks :smiling_face_with_three_hearts:

it lacking a bit of detail; direction of travel, type of stop, its current status (active, inactive, deleted/archived) and when the it was last updated.

Yeah, their data on that source only seems to have the stop name, ATCO number, which bus depot the stop belongs to, and its positional coordinates.
I’ve been using the CSV versions myself (which do have an upload date) - generally those CSV files only contain active stops. There was one a few months ago which also included inactive stops, but that seemed to be a one-off aberration where someone forgot to filter them out. (You can tell there are inactive stops as there are gaps in the contiguous ATCO stop numbers otherwise).
This year they’ve been issuing updated CSV files on that Open Data site every few months. Mostly the changes are the addition of about 50 extra ‘ghost stops’ each time (i.e. stops which existed on the ground but were missing from their digital records).

The data there doesn’t contain anything about stop infrastructure, or which ‘fare zone’ they are in. Translink assured me privately in an FOI response that they do have a bus stop asset inventory which includes data on whether the stop has a shelter, flag sign, etc (anything up to 40% of Translink’s stops are currently missing their flag signs! Luckily many Northern Irish people has psychic powers…)

There also seems to be at least one other internal Translink bus stop database, because they keep changing (‘modernising’) stop names, and these often materialise in their smartphone app (and/or on physical flag signs at stops) at different times to when they appear on that Open Data portal. On an FOI response to me they muttered something about these different data sources getting out of sync at times. It’s all part of their ‘Project Epic’ bus stop data programme, apparently…

Anyways, if this data can appear in your tool, that will be game changer for getting Translink’s stops mapped!

It will require a a bit of down time (approx 2 hours) to rebuild the database (going from GB to UK GeoFabrik source)

Fun fact - there are a few stops in the Republic of Ireland that Translink have assigned UK ATCO codes to (e.g. in Dublin Bus Station, at Dublin Airport…)
This is cos Translink run a few cross-border express services to those destinations.

@ramthelinefeed Thanks for the information. I did notice a few random stops which where located out side of NI, I’ve left them in for the time being as its something which needs sorting at the source (Translink)

Anyway the tool has been updated and is now live, any issues let me know OSM ≠ NaPTAN Compare - Bus Stops Map - Northern Ireland - Northern Ireland. Over the next few weeks I’ll get the NI outline sorted, at the minute its just a rough low poly outline but its usable.

Amazing, that’s my weekend sorted :sweat_smile:
Seriously though, this will be a gamechanger for getting bus services mapped in NI!

I think I’m definitely guilty of shifting some in Wales, although there’s still a lot that’s missing here - we now have Welsh language CommonName fields in some areas which is ideal for putting as name:cy.
Not sure if this is of any use to you but we do have this on DataMapWales…

1 Like

I did notice a few random stops which where located out side of NI, I’ve left them in for the time being as its something which needs sorting at the source (Translink)

Well they’re not random, they’re RoI bus stops served by Translink services, so Translink have given them NaPTAN ATCO codes. Is that not fine and logical?

Another point about Translink’s NaPTAN data: I’m seeing a considerable amount of ‘unmatched’ NaPTAN stops, that when I consult datasources that are linked to Translink’s Public Transport AI (such as bustimes.org and G**gle Maps, and Translink’s smartphone app), it becomes apparent that there are no public passenger services from these stops.
I think this is fairly readily explained by them being only used for school services (of which Translink operate multitudes).
I think it is probably best not to map these school-service only stops on OSM? (The majority of them have no flag sign on the ground, although curiously a fair few of them do have a bus shelter). Alternatively they could be mapped, but simply not tagged with route relations for any public bus services. (The latter option seems like a lot of work for little gain, but maybe I wouldn’t think that if I was a schoolchild who catches their bus at one…)

If I see a bus shelter I’m probably tagging a bus stop. Especially if there’s a timetable in it.

1 Like

that’s not always reliable in Northern Ireland, because a disused bus shelter might still be falling to bits at the site of a former bus stop on a route that was scrapped 30 years ago! But yeah, it’s certainly a good clue! :)

2 Likes

@OneLoneRanger as a slight tangent, whilst I have never seen NaPTAN ATCO codes listed anywhere for train stations in Northern Ireland, I remembered that the Stormont-run ferry services (Rathlin, Strangoford…) do have ATCO codes for their ferryports.
I first saw these appear on https://www.bustimes.org

Following the info there on where the data came from, there does seem to be an all-you-can-eat NaPTAN dataset for the Republic of Ireland at GTFS | Transport for Ireland (I’m not really conversant with the history of why RoI also seems to have NaPTAN too when it’s a UK Dept of Transport thing! In principle thought you can purchase SailRail tickets between any train station GB and the island of Ireland, so there is that…
ROI ATCO code numbers begin with an ‘8’ rather than a ‘7’, I think…)

Does that mean that Ireland should be added to “must only be used in region” in NAPTAN data items such as naptan:AtcoCode - OpenStreetMap Wiki?

I guess it does? Perhaps rather than ‘UK wide’ it should say ‘within the Common Travel Area’ Common Travel Area - Wikipedia (do they use NaPTAN in the Channel Islands? :thinking: )