National Public Transport Access Nodes (NaPTAN)
Posted by Department for Transport on 04/01/2012 31 comments
NaPTAN is a GB national system for uniquely identifying all the points of access to public transport in GB. It is a core component of the GB national transport information infrastructure and is used by a number of other UK standards and information systems. Every GB station, coach terminus, airport, ferry terminal, bus stop, etc., is allocated at least one identifier.
Comments (31)
Easting and northing
I am quite new to geolocalisation. How can I convert easting and northing to latitude and longitude?
Thanks
Easting and northing
Fran,
The NaPTAN data contains both Easting/Northing and Longitude/Latitude data - so you will not have to do any conversions.
-CS
Thanks!
Thanks!
Railway routes
The data could be better documented. Is it possible to identify stations that are grouped by line. Ie I am not interested in returning the next nearest station on the same line, but would be good to return the next nearest station on a different line.
Railway Routes
What you're looking for is route data. This can be found in the NPTDR datasets available here on data.gov.uk.
If you are unhappy with the NaPTAN documentation; then for NPTDR data you may find the CIF version and it's specification easier to use for your purposes than the TXC version.
-CS
Railway routes
using RailReferences
Web Services
Is this information available via a WMS or WFS web service ?
Richard
Processing CSV data automatically
Can anybody tell me if the following is possible?
I would like to take the 'Stop.csv' data and then map this in a mapping API (perhaps the Google Maps API, or the OS Opensource API).
I assume that the Stops data is potentially susceptible to change (with new bus stops being added or deleted) and as such I would like to programmatically grab the data (run from a server side scheduled task) and then write this to my database (maybe a PostgreSQL db – not decided this part yet though). I understand that the in reality the Stops.csv data may not be updated that regularly - however at at the moment I am just looking at a proof of concept (i.e. grabing csv data from a URL and then mapping accordingly)
If there is another way of doing this please do let me know!
Any help appreciated!
Dodgy Northing- West Brompton Station
You might want to take a look at the Northing field for West Brompton Station.
It plots a few miles South of Brighton ! I think it is missing a '1' at the start of the grid reference (I compared against OS Meridian 2).
Regards
Nick
Now OK
Looks like it's OK in the current dataset. (Files in zip are dated 4th Oct 11).
Linking stops using transport routes
Is it possible to link bus (or rail) stops based on the busses that service them. This would let me build up a proper transport network. Apologies if this is explained elsewhere, I haven't found anything.
Thanks,
Nick
Nick - there is no bus info
Nick - there is no bus info in the NaPTAN data. The information you want is in the NPTDR dataset. This dataset, which is basically coded timetables, includes the stops along each bus route.
'Last updated' hasn't changed on website
The dataset and metadata appear to have been updated 2011-04-01, but the page http://data.gov.uk/dataset/naptan still says 2011-01-01. I'd been waiting for the new dataset only realise now that it was actually updated a few days ago.
This doesn't seem to be due to caching by my browser/webcache or even in Varnish on the data.gov.uk side. Is this a problem with the data.gov.uk website code? Could it also be affecting other datasets?
NaTPAN CSV files - Wright On Research
I am wondering why the airport reference file does not have Eastings and Northings when the rail, coach, ferry and bus stops do have them?
Am I understanding correctly that the date of the current csv download is January 2011 and that it is updated quarterly here on this website?
Thank you
Wright on Research
Airport References File
It's probably like that for historical reasons, like there not being a metrorefs file. All the data is in the stops.csv file. Airports start 920..., metros 940..., rail 910..., ferries 930... And stops.csv has long/lat as well as easting/northing.
MetroRef, CrsRef and LBSL Codes
Two questions:
1. Is the MetroRef field populated? I can't seem to get hold of that field for any of the StopPoints I access. Related to this, some Underground stations have CRS codes associated with them (e.g. High Street Kensington has CRS Code ZHS). Is there a timescale for incorporating this data, or am I maybe missing a trick, and failing to find it when it's already there?
2. In order to integrate this data with London bus routes, is there any link between the LBSL Stop code and the Atco Code? I've been searching for something that will help me do this, but I've drawn a blank so far.
Many thanks,
-- Rob
PS I used the zipped XML
PS I used the zipped XML download.
Thanks,
-- Rob
API/SOAP access
Hi,
Something that many people have been asking for, I've begun writing my own SOAP-like API to retrieve some basic stop data. I plan to extend this to return more information, such as the locality from NPTG, but for now there is a demo at:
http://opendb.steven.hosting.pyro.eu.org/apps/naptan/
To do this, I wrote a nifty importer to decompress the ZIP'd XML on-the-fly and insert data into PostgreSQL, which is free and open-source from:
http://opendb.steven.hosting.pyro.eu.org/svn/naptan2pgsql/trunk/
A SQL dump of my database (currently only containing some basic stop data, though) can be obtained at:
http://opendb.steven.hosting.pyro.eu.org/datasets/naptan/export/
Thanks for the clarification on licensing; until then I would have been unable to redistribute the data in the ways I'm doing here.
MetroReferences CSV File
The MetroReferences.csv file is empty. Does anyone know of another source for this data in csv format or is is it currently not available? Thanks
MetroReferences CSV File
The various References files (RailReferences, MetroReferences) capture legacy data from V1. For the data relating to Metro/Tram stops these are contained within the normal datafiles (stops.csv) as 940 stops. This is also true for all the 'National' datasets (Rail, Ferry, Air and Metro/Tram).
Rail data has the prefix 910,
Air data has the prefix 920,
Ferry data has the prefix 930,
Metro/Tram data has the prefix 940.
Re: Identifiers
I think all stops (including bus, train and more) have ATCO codes, which are sometimes mentioned on the timetable printout at the stop. These are unique, alphanumeric identifiers.
Many stops also have a separate NaPTAN ID, which is the same as the Traveline txt-code often displayed at a stop as well. If a NaPTAN code exists for a stop, it will be unique. I think these are letters only.
Identifiers?
What identifiers would you use for a bus stop?
Still confused with licensing
I'm still confused with the licensing here. Can this be used for commercial or semi commercial use?
licensing
Hello, please see the earlier post in relation to this - the license for this data set has been updated to refer to the data.gov.uk terms of use, which can be found here:
http://data.gov.uk/terms-and-conditions
This should answer your enquiry but please do get in touch if you still have any questions, either via the website or by email - team@data.gov.uk
Many thanks,
Phil
Isn't it Access Node (in the
Isn't it Access Node (in the singular)?
Contradictory licensing
I've noticed another problem here; the downloadable XML metadata's 'license' tag refers only to the DfT Terms of Use, which prohibits commercial uses; this page however says that data.gov.uk rights apply (which encourage commercial use). So, which is it? Please clarify this.
metadata license reference updated
Hi, just to say that the license reference in the meta data has been updated to bring it in line with the data.gov.uk data license agreement.
Thanks,
Phil
Commercial reuse of this dataset
The linked terms of use seem to exclude commercial use: "Use of Data - Use of the NaPTAN data is subject to license by the Department of Transport. Public Sector and Commercial Licences are available. Fees may be charged for Commercial Licenses. "
I also notice that these terms of use were last update in August 2009: "Page last updated: 06.08.2009"
I assume that these terms will now be adjusted to fit with data.gov.uk aspiration that commerical use is allowed taken from the data.gov.uk FAQ: "Q. What are the commercial use rights if people have commercial ideas? A. Crown Copyright enables you to use all our data for commercial purposes. We are delighted that you see a commercial opportunity in using our data.
Steven Chamberlain
Re: Commercial reuse of this dataset
I take "License: UK Crown Copyright with data.gov.uk rights" to imply that it can be used under the standard data.gov.uk terms, despite anything the 'Terms of Use' page may say to the contrary. So I'd assume commercial or any other use is permitted provided that the correct attribution is given to the copyright holder (the Crown).
Commercial reuse of this dataset
It's worth noting that openstreetmap has been given explicit permissions to import this data and hence make it available as CC-BY-SA
http://wiki.openstreetmap.org/wiki/NaPTAN
Commercial reuse of this dataset
Not quite - The release to OpenStreetMap was great, however it was a single release of that subset of the data that OpenStreetMap wished to import with updates from time to time. There was no guaranteed regular update and the release was designed to not impact on the sale of the DB itself to other parties; and anyone else who wanted the full clean DB would still have to go back to the DfT/Traveline and pay for it.
So... to be a valid entry in data.gov.uk the terms and conditions linked from this page still need to be sorted out and commercial use allowed.