This is an OpenTripPlanner network graph for planning trips, by car or public transport, between places in Wales - including where these trips involve a short journey entirely within England. (It likely also works well enough for planning trips between places in Wales and a small number of English towns just the other side of the border.)

The map shows bus and train routes included in the latest graph, giving a rough idea of the region included.

How to use this

The graph file was last updated at 07:20 GMT on 25 March 2024. (The graph should update weekly.)

Download the latest release of the Wales-ish OTP graph here. You’ll need to download the otp_and_graph.zip asset.

You can then start OpenTripPlanner using run-otp.bat (under Windows) or run-otp.sh (under Linux or macOS). Eventually it’ll print “Started listener bound to [0.0.0.0:8080]” and you’ll be able to access the planner at http://localhost:8080 .

(You’ll need install Java 17. See the OTP documentation for more information.)

You can see the code used to download source data and generate this graph here.

License

The graph.obj graph file is made available under the ODbL v1.0 by Adam Watkins as part of the Wales-ish OTP graph project.

The graph file contains:

The graph file is provided without any warranty of any kind and without any endorsement by any of the individuals or organisations named above, for any purpose.

If you provide a routing service or similar using the graph file you should make sure that the above attributions are stated clearly. If you produce a set of routing instructions using such a routing service, these likely form a “derived database” and should also be provided under the ODbL v1.0, again with the attributions above attached.

otp.jar is a copy of the version of OpenTripPlanner used to generate the graph file; it is released under the LGPL v3.0 (or later). Again, it is provided without any warranty of any kind and without any endorsement, for any purpose.

Test Journeys

A small number of journeys, departing on Tuesday morning the following week, are tested every time that the graph is built. The results from the latest update of the graph are shown below.

Description Car Public
Aberdare to Glynneath 0h23m 1h 4m
Abergavenny to Pontypridd 0h37m 2h20m
Bala to Cardiff 3h41m 3h58m
Bangor Pier to Great Orme 0h47m 1h41m
Blaengarw to Bridgend 0h36m 3h 9m
CP2 to Secret Garden Cafe 0h 7m 0h 9m
Caerphilly to Cwmafan 0h54m 2h24m
Cardiff to Bala 3h40m 4h57m
Cardiff to Sheffield N/A N/A
Cardigan to Trawsfynydd 2h52m 4h30m
Chirk to Walton 1h33m 3h38m
Grangetown Library to UHW A&E 0h23m 0h59m
Lampeter to Llandovery 0h32m 2h54m
Llangadog to Rhayader 1h 2m 3h19m
Llangollen to Ruthin 0h29m 1h 7m
Merthyr to Cardiff 0h46m 1h18m
Pontsticill to the Naughty Stone 1h 4m 1h26m
Rhosllanerchrugog to Denbigh 0h59m 1h54m
Swansea to Bargoed 1h20m 3h49m
Swansea to Wrexham 3h35m 6h19m
Treharris to Gellideg 0h21m 0h54m
Whitland to Cardigan 0h44m 2h13m

Thanks

This project developed out of a NHS Welsh Modelling Collaborative hackathon, with the support of colleagues across NHS Wales including James Cooke of the Welsh Ambulance Service.

It depends entirely on the work done by OpenStreetMap contributors, Malcolm Morgan (University of Leeds, Institute for Transport Studies) and UK2GTFS contributors, Traveline, the osmium developers, and of course the OpenTripPlanner developers.

Important inspiration included the graphite project produced as part of a piece of work by the ONS Data Campus. Also of note is the OTP4GB project and other work by ODI Leeds.