[Talk-GB] NaPTAN Bus Stops

Barry Cornelius barrycorneliusuk at gmail.com
Tue Dec 11 21:55:59 GMT 2012

On Tue, 11 Dec 2012, Donald Noble wrote:
> I tried downloading the XML file from data.gov.uk:

The XML file is mentioned at:
and it is available as a zip file at:
I think it gets regularly updated.

> but when I opened it the 500MB file was all on the second line, apart 
> from the XML version tag on the first line. This meant I struggled to 
> even look at the file to see if I could do anything useful with it. 

The file NaPTANxml.zip is about 31MB and, as you say, after unzipping it 
NaPTAN.xml is about 500MB.  If you're using linux, you can format 
NaPTAN.xml using:
    xmllint --format NaPTAN.xml >format.xml
The file format.xml is about 750MB.  I think xmllint is in the debian
package called libxml2-utils.

> Therefore I was wondering if anyone has (or is able to produce) an 
> extract for the area around Glasgow (or even for Scotland) preferably 
> already in osm format that I could use.

I haven't done that.  However, in case it's of any use, I've put a zipped 
version of format.xml at:
It's about 36MB.  I regard this directory as a temporary space and so I 
will delete this file later.  Regard it as having the same licence as the 
original file:

To whet your appetite, here's an extract:
     <StopPoint CreationDateTime="2003-08-27T00:00:00" ModificationDateTime="2012-07-02T14:24:40" Modification="new" RevisionNumber="0" Status="active">
         <CommonName>Balmore Square</CommonName>
         <Landmark>Balmore Square</Landmark>
         <Street>Balmore Road</Street>
         <StopAreaRef CreationDateTime="2012-11-28T15:27:31" Modification="new" Status="active">609G04088</StopAreaRef>
         <PlusbusZoneRef CreationDateTime="2010-10-07T14:27:15" ModificationDateTime="2010-10-07T14:27:15" Modification="new" RevisionNumber="0" Status="active">GLGC</PlusbusZoneRef>

There's some explanation at:

Barry Cornelius

More information about the Talk-GB mailing list