HSL/HRT - Helsinki Region Transport
Helsinki, Finland
Map based route planner - for smart phones with large screens, sensible JavaScript support and enough processing power. Read more... Examples...
Simple and light-weight route planner - for less advanced devices. Also useful for users who want fast results or like to minimize data traffic. Read more...
Find nearest public services in various categories. Get public transport route instructions on how to get there! Read more...
Find nearest stops and get the timetables easily. You can choose the stops from which the timetables are shown and save a bookmark for your personalized view. Read more...
Another way of finding nearest stops and get the timetables easily. Choose a stop and the next departures from that stop are shown. Click on any row and see the route of the line on the map. Also the vehicles of that line currently on route are shown on map. Uses Stops GeoJSON API and Routes GeoJSON API (documented below)
Yet another way of finding nearest stops and get the timetables easily. Uses the HSL reittiopas API directly (via a small proxy script). Implemented in JavaScript for better performance (concurrent requests).
Find your way using the public transport and inline skates - often the fastest way to go! Read more...
HSL line routes (paths) in GeoJSON format.
Parameters
Name | Description | Default value |
lines | Jore codes of lines, separated with | (pipe) | - |
cid | client id, should be set (to reduce unnecessary load with dup); your client must support cookies | - |
dup | return duplicates (you must set dup=1 if you want routes already sent to client cid to be sent again) | false (0) |
clr | clear session (forget which routes are sent during this session) | - |
Examples
HSL stops, passing lines and next departures in GeoJSON format.
Parameters
Name | Description | Default value |
BBOX | bounding box in KML format; preferred; overrides lat, lon and rad | - |
lat | latitude of the center point of the search area | 60.2 |
lon | longitude of the center point of the search area | 24.8 |
rad | radius of the search area | 1000 |
max | maximum number of stops returned | 1000 (maximum) |
tab | show next departures (as an HTML formatted timetable) | false (0) |
cid | client id, should be set (to reduce unnecessary load with dup); your client must support cookies | - |
dup | return duplicates (you must set dup=1 if you want stops already sent to client cid to be sent again) | false (0) |
clr | clear session (forget which stops are sent during this session) | - |
Examples
JavaScript API for Omat lähdöt XML API (HSL stop departure times)
Parameters
Name | Description | Default value |
stops | array of stop identifiers | - |
time | date and time of query, e.g. 2006-12-28T13:32:52 | - |
max | maximum number of departures to return | 10 |
Examples
Source code on GitHub
HSL vehicles real time position information in GeoJSON format. Results are sorted by transport type and route.
Parameters
Name | Description | Default value |
BBOX | bounding box in KML format | - |
buses | maximum number of buses | 1000 |
trains | maximum number of local trains | 1000 |
longdistancetrains | maximum number of long distance trains | 1000 |
trams | maximum number of trams | 1000 |
line | lineid (Jore code) of a single line | - |
delay | ignore results older than delay seconds | 300 (5 minutes) |
Examples
General Transport Feed Specification (GTFS) Realtime feed for HSL vehicle positions.
Source code on GitHub
General Transport Feed Specification (GTFS) Realtime feed for HSL service alerts.
Source code on GitHub
JavaScript API for Poikkeustiedot XML API (HSL service alerts)
Parameters
Name | Description | Default value |
line | Line number (e.g. 550) | - |
type | Line type as specified in the XML API (e.g. 2 for trams) | - |
lang | Language (fi, sv, en); incorrect language code se is accepted for swedish (sv) | fi |
dt | Datetime, preferably in the format 2013-09-25T13:14:15 but you can also try other formats like tomorrow. | - |
Examples
Disruption info (service alert) history for HSL lines, in JSON format. Collected by polling Poikkeustiedot XML API in frequent intervals since February 2011. The data is incomplete. The polling hasn't been functioning at all times.
Parameters
Name | Description | Default value |
line (URL path parameter) | Line ID1 | - |
now (query parameter) | Add ?now=1 to only show currently valid disruptions | - |
1Line ID should be Jore code, but due to a bug in Poikkeustiedot XML API, this is actually a human readable line identifier
Examples