PlusBus areas
A PlusBus area is one or more stations that share a PlusBus ticket (for example the five Northumberland Line stations). Each area gets its own page, plusbus.html?id=…, with its tickets, bus routes and a map. Destinations don’t get pages.
Unsaved changes: download data.js at the bottom of the page.
1. Name and place
2. Stations in it
A station that isn’t in the list? Add it
Click its position on the map, then press Add station.
No position chosen.
3. Tickets
4. Bus routes: paste or import them all at once
Import from a file:
A spreadsheet saved as CSV, or the routes.txt from a GTFS bus timetable download (Bus Open Data Service). Columns named route, short name, long name, operator or agency, and link or url are recognised. Imported routes are added to the box above so you can tidy them before saving.
5. Pick routes from timetable files
Read in your browser, nothing is uploaded. Files you choose are added to the list below, so you can load another operator’s zip afterwards and pick from everything loaded.
Tick a route, then untick any variants (directions, short workings) you don’t want, and add.
Download Stops.csv (“all stops”) from the NaPTAN national download. It is large, so it takes a little while to read, and it is read in your browser only. Load it before picking routes, or afterwards use “Add locality names from NaPTAN” below.
Or: draw lines for the routes typed in section 4
For each route typed in section 4, I find it in the files and draw its line. Routes I can’t find stay as plain text, so you can repeat this with another operator’s files.
6. Routes in this area: edit anything
Route number, where it goes, operator, bustimes.org link, colour and the part the ticket is valid on. Untick a route to remove it from the area. Then press Save this area.
Replace the old data.js in your site folder, then upload the site again. If you also use add.html, finish with one page and download before opening the other, so they don’t overwrite each other.