{"componentChunkName":"component---src-templates-developers-js","path":"/en/developers/apis/2-routing-data-api/","result":{"data":{"childPages":{"edges":[{"node":{"fields":{"slug":"/en/developers/"},"frontmatter":{"title":"For developers","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/"},"frontmatter":{"title":"System architecture","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/api-registration/"},"frontmatter":{"title":"API portal and registration","order":-12,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/changes/"},"frontmatter":{"title":"Changes","order":-10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/user-interfaces/"},"frontmatter":{"title":"User interfaces","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/deprecations/"},"frontmatter":{"title":"Deprecations","order":-11,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/docker-guide/"},"frontmatter":{"title":"Docker guide","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/"},"frontmatter":{"title":"APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/"},"frontmatter":{"title":"Routing API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/2-routing-data-api/"},"frontmatter":{"title":"Routing data API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/"},"frontmatter":{"title":"Map API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/"},"frontmatter":{"title":"API architecture","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/6-api-faq/"},"frontmatter":{"title":"FAQ","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/"},"frontmatter":{"title":"Realtime APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/"},"frontmatter":{"title":"Geocoding API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/7-terms-of-use/"},"frontmatter":{"title":"Terms of use","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/user-interfaces/1-digitransit-ui/"},"frontmatter":{"title":"Digitransit-ui","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/0-graphql/"},"frontmatter":{"title":"GraphQL","order":10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/3-realtime-information/"},"frontmatter":{"title":"Real-time information","order":40,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/2-glossary/"},"frontmatter":{"title":"Glossary","order":30,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/canceled-trips/"},"frontmatter":{"title":"Canceled trips","order":80,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/disruption-info/"},"frontmatter":{"title":"Disruption info","order":70,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/4-translations/"},"frontmatter":{"title":"Translation","order":50,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/routes/"},"frontmatter":{"title":"Routes","order":100,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/stops/"},"frontmatter":{"title":"Stops","order":110,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/bicycles-scooters-cars/"},"frontmatter":{"title":"Bicycles, cars and e-scooters","order":60,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/itinerary-planning/"},"frontmatter":{"title":"Itinerary planning","order":90,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/1-routing-api/"},"frontmatter":{"title":"Routing API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/2-routing-data-api/"},"frontmatter":{"title":"Routing Data","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/4-map-api/"},"frontmatter":{"title":"Map API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/5-realtime-api/"},"frontmatter":{"title":"Real-time APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/"},"frontmatter":{"title":"Geocoding API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/1-graphiql/"},"frontmatter":{"title":"GraphiQL","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/background-map/"},"frontmatter":{"title":"Background map","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/1-getting-started/"},"frontmatter":{"title":"Getting started","order":10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/address-search/"},"frontmatter":{"title":"Address search","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/autocomplete/"},"frontmatter":{"title":"Autocomplete","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/trip-updates/"},"frontmatter":{"title":"Trip updates","order":30,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/service-alerts/"},"frontmatter":{"title":"Service alerts","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/address-lookup/"},"frontmatter":{"title":"Address lookup","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/pois/"},"frontmatter":{"title":"Points of interest","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/"},"frontmatter":{"title":"Vehicle positions","order":40,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/data-container/"},"frontmatter":{"title":"Data builder and container","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/api/"},"frontmatter":{"title":"API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/high-frequency-positioning/"},"frontmatter":{"title":"High-frequency positioning","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/digitransit-mqtt/"},"frontmatter":{"title":"Digitransit MQTT broker","order":10,"redirect":null}}}]},"markdownRemark":{"fields":{"slug":"/en/developers/apis/2-routing-data-api/"},"frontmatter":{"title":"Routing data API","redirect":null,"toc":null,"description":null,"assets":null,"technologies":null,"docker":null},"html":"<p>The routing data API provides four OpenTripPlanner (OTP) router datasets: Finland and Estonia, HSL region,\nSouthwest Finland region and Waltti cities. The available data sets are documented in\n<a href=\"../../architecture/x-apis/2-routing-data-api/\">the architecture page for this API</a>.</p>\n<h2 id=\"opentripplanner-data-and-configuration-files\" style=\"position:relative;\"><a href=\"#opentripplanner-data-and-configuration-files\" aria-label=\"opentripplanner data and configuration files permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>OpenTripPlanner data and configuration files</h2>\n<p>The available files are split into different endpoints for each of our routers (finland, hsl, varely and waltti). The currently\nactive routing data can be viewed from the corresponding production HTTP endpoints (use of either <code class=\"language-text\">digitransit-subscription-key</code>\nURL parameter or a header is needed, browsing with a browser can be clumsy due to this limitation):</p>\n<ol>\n<li><a href=\"https://api.digitransit.fi/routing-data/v3/finland/\">https://api.digitransit.fi/routing-data/v3/finland/</a></li>\n<li><a href=\"https://api.digitransit.fi/routing-data/v3/hsl/\">https://api.digitransit.fi/routing-data/v3/hsl/</a></li>\n<li><a href=\"https://api.digitransit.fi/routing-data/v3/varely/\">https://api.digitransit.fi/routing-data/v3/varely/</a></li>\n<li><a href=\"https://api.digitransit.fi/routing-data/v3/waltti/\">https://api.digitransit.fi/routing-data/v3/waltti/</a></li>\n</ol>\n<h3 id=\"contents-of-the-endpoints\" style=\"position:relative;\"><a href=\"#contents-of-the-endpoints\" aria-label=\"contents of the endpoints permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Contents of the endpoints</h3>\n<p>There are three types of files availables (some files are used for two purposes):</p>\n<ol>\n<li>Files that are used to run an OTP server.</li>\n<li>Files that are used to build a graph for OTP.</li>\n<li>Log files.</li>\n</ol>\n<p>See how Routing API utilizes these files on <a href=\"../1-routing-api/\">the routing API page</a>.</p>\n<p>Contents differ for different\nendpoints, but these examples are for the HSL endpoint:</p>\n<h4 id=\"files-for-running-otp\" style=\"position:relative;\"><a href=\"#files-for-running-otp\" aria-label=\"files for running otp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Files for running OTP</h4>\n<ol>\n<li><code class=\"language-text\">graph-hsl-753c4cfe9f63400f0ad093bc515d1bba6b8e14a1.zip</code>\nThis zip contains the required files to run OpenTripPlanner server. The naming convention is <code class=\"language-text\">graph-&lt;router_id>-&lt;commit_hash>.zip</code></li>\n<li><code class=\"language-text\">graph.obj</code>\nA graph that can be loaded into latest version of OpenTripPlanner.</li>\n<li><code class=\"language-text\">streetGraph.obj</code>\n(only exists if prebuilt street only graph was used to generate the complete graph)\nA street only graph that is used to generate the complete graph.</li>\n<li><code class=\"language-text\">otp-config.json</code>\nThe configuration for enabling or disabling features in OTP.</li>\n<li><code class=\"language-text\">router-config.json</code>\nThe per-router customized runtime configuration for OTP.</li>\n</ol>\n<h4 id=\"files-for-building-otp-graph\" style=\"position:relative;\"><a href=\"#files-for-building-otp-graph\" aria-label=\"files for building otp graph permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Files for building OTP graph</h4>\n<ol>\n<li><code class=\"language-text\">build-config.json</code>\nThis is the OTP configuration file that is used to build the OTP Graph file.</li>\n<li><code class=\"language-text\">hsl.pbf</code>\nOpenStreetMap data file for the HSL region (used by OTP).</li>\n<li><code class=\"language-text\">HSL.zip</code>\nGTFS file (other routers have many different GTFS files).</li>\n<li><code class=\"language-text\">HSL-lautta.zip</code>\nGTFS file (other routers have many different GTFS files).</li>\n<li><code class=\"language-text\">otp-config.json</code>\nThe configuration for enabling or disabling features in OTP.</li>\n<li><code class=\"language-text\">router-config.json</code>\nThe per-router customized runtime configuration for OTP.</li>\n<li><code class=\"language-text\">router-hsl.zip</code>\nThis zip contains the required files to build new OpenTripPlanner graph.</li>\n<li><code class=\"language-text\">hsl.tif</code>\nElevation data file for the HSL region (used by OTP, not mandatory).</li>\n</ol>\n<h4 id=\"build-log-files\" style=\"position:relative;\"><a href=\"#build-log-files\" aria-label=\"build log files permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Build log files</h4>\n<ol>\n<li><code class=\"language-text\">report</code>\nDirectory containing issues and information from the previous graph build.</li>\n<li><code class=\"language-text\">street-report</code>\n(only exists if prebuilt street only graph was used to generate the complete graph)\nDirectory containing issues and information from the previous street only graph build.</li>\n<li><code class=\"language-text\">build.log</code>\nLog of the previous graph build.</li>\n<li><code class=\"language-text\">street-build.log</code>\n(only exists if prebuilt street only graph was used to generate the complete graph)\nLog of the street only graph build used for the previous complete graph build.</li>\n<li><code class=\"language-text\">version.txt</code>\nA version file that contains a timestamp (for example '2017-08-18T02:32:45.635Z') of the time when the data was processed.</li>\n<li><code class=\"language-text\">connected.csv</code>\nList of stops that could be linked based on OSM data (for debugging purposes).</li>\n<li><code class=\"language-text\">unconnected.csv</code>\nList of stops that could not be linked based on OSM data but they still do exist in the graph (for debugging purposes).</li>\n</ol>\n<h2 id=\"note-to-users-of-finland-and-estonia-routing-data\" style=\"position:relative;\"><a href=\"#note-to-users-of-finland-and-estonia-routing-data\" aria-label=\"note to users of finland and estonia routing data permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Note to users of Finland and Estonia routing data</h2>\n<p><a href=\"https://api.digitransit.fi/routing-data/v3/finland/\">The Finland and Estonia data endpoint</a> contains information concerning public transport services by the cities and ELY-centers as well as data relevant to long distance market based coach connections in Finland. It also contains data for Estonia.</p>\n<p>Source for coach connection data is <a href=\"https://finap.fi\">https://finap.fi</a> which is Finnish National Access point for multimodal data (EU/MMTIS). Data is provided by respective transport operators. Finap.fi data is licensed with CC 4.0 BY. Finap.fi service is operated by Fintraffic.</p>\n<p>Please visit <a href=\"https://finap.fi\">https://finap.fi</a> and <a href=\"https://github.com/tmfg/mmtis-national-access-point/blob/master/docs/api/README.md\">https://github.com/tmfg/mmtis-national-access-point/blob/master/docs/api/README.md</a> if you are interested more wider use of Finap datasets.</p>\n<p>For more information contact Fintraffic with support channel email: nap@fintraffic.fi</p>\n<h2 id=\"related-links\" style=\"position:relative;\"><a href=\"#related-links\" aria-label=\"related links permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Related links</h2>\n<table>\n<thead>\n<tr>\n<th>URL</th>\n<th>Project description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://github.com/hsldevcom/OpenTripPlanner/\">https://github.com/hsldevcom/OpenTripPlanner/</a></td>\n<td>Digitransit fork of OpenTripPlanner</td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/opentripplanner/OpenTripPlanner/\">https://github.com/opentripplanner/OpenTripPlanner/</a></td>\n<td>OpenTripPlanner upstream</td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/hsldevcom/opentripplanner-data-container/\">https://github.com/hsldevcom/opentripplanner-data-container/</a></td>\n<td>Digitransit fork of OpenTripPlanner</td>\n</tr>\n<tr>\n<td><a href=\"https://blog.openstreetmap.org/\">https://blog.openstreetmap.org/</a></td>\n<td>OpenStreetMap blog</td>\n</tr>\n</tbody>\n</table>","tableOfContents":"<ul>\n<li>\n<p><a href=\"/en/developers/apis/2-routing-data-api/#opentripplanner-data-and-configuration-files\">OpenTripPlanner data and configuration files</a></p>\n<ul>\n<li>\n<p><a href=\"/en/developers/apis/2-routing-data-api/#contents-of-the-endpoints\">Contents of the endpoints</a></p>\n<ul>\n<li><a href=\"/en/developers/apis/2-routing-data-api/#files-for-running-otp\">Files for running OTP</a></li>\n<li><a href=\"/en/developers/apis/2-routing-data-api/#files-for-building-otp-graph\">Files for building OTP graph</a></li>\n<li><a href=\"/en/developers/apis/2-routing-data-api/#build-log-files\">Build log files</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><a href=\"/en/developers/apis/2-routing-data-api/#note-to-users-of-finland-and-estonia-routing-data\">Note to users of Finland and Estonia routing data</a></li>\n<li><a href=\"/en/developers/apis/2-routing-data-api/#related-links\">Related links</a></li>\n</ul>","excerpt":"The routing data API provides four OpenTripPlanner (OTP) router datasets: Finland and Estonia, HSL region,\nSouthwest Finland region and Waltti cities. The available data sets are documented in\nthe…"}},"pageContext":{"slug":"/en/developers/apis/2-routing-data-api/"}},"staticQueryHashes":["3675773199","4050193485"]}