TMS Data

The Finnish Transport Agency collects data about road traffic using an automatic traffic monitoring system (TMS, also referred as LAM). The data is shared both in raw form and as generated reports. Currently, there are about 500 traffic measuring stations in Finland.

$curSection.bigImageAltText.data
All TMS data starting from year 1995 is available through the TMS raw data service.

TMS point operation

The operation of the TMS points is based on induction. An electrically conducting loop is installed inside the pavement, and when a vehicle passes over the loop, the TMS device detects the change in inductance.

The TMS point consists of ta data collecting unit and two induction loops on each traffic lane. The device registers vehicles passing the TMS point, recording data such as time, direction, lane, speed, vehicle length, time elapsed between vehicles and the vehicle class.

 

There are seven vehicle classes:

  • cars and delivery vans (1)
  • trucks (2)
  • buses(3)
  • semi-trailer trucks  (4)
  • trucks with trailer  (5)
  • cars and delivery vans with trailer (6)
  • cars and delivery vans with a long trailer or with a mobile home (7)

A new type (DSL_6) of TMS point is currently being tested on the Finnish road network. The new points are able to detect also motorcycles (vehicle class 0). More information about the TMS points and other metadata for the TMS points is available in the Finnish transport agency's Digitraffic service.

Open TMS data

TMS reports

The Finnish Transport Agency produces reports from TMS data both for it's own internal use and for its partners. The reports are also available as open data at the address:

LAM_poiminnat/

This directory contains a report "1.07 Tuntiliikenne (q)" created at 07:00 for each TMS point grouped by the ELY Centres (Centres for Economic Development, Transport and the Environment). The reports show data from each TMS point, hourly by direction, with no fixes to data in the database.

LAM/

LAM-directory reports are updated on the 1st day of each month. They contain hourly data from the previous month with vehicle classes for each day of the month. The field separator in the file is a semicolon (;), and the data may be corrected in the database.

LAM/Tulli/

The subdirectory Tulli/ under LAM/ contains daily reports for border crossing TMS points as CSV files, with a semicolon as the field separator. The data is not corrected in the database. The data is updated daily at 13:00. Additionally, on the 11th day of each month a monthly report with all data of the border crossing TMS points is created as a CSV file with a semicolon as the field separator. The data may have been corrected in the database

TMS raw data

TMS raw data is obtained directly from the TMS points. The data is converted to a CSV format but not altered in any way.

All TMS data starting from 1995 is available through the TMS raw data service. New data is added to the service daily between 03:00-04:00.

 

Accessing the data

TMS data is available in CSV files, one file for each TMS point for each day ("result file"). A specific URL path is needed when accessing the data:

 
https://aineistot.liikennevirasto.fi/lam/rawdata/[year]/[ELY]/lamraw_[lam_id]_[yearshort]_[day_number].csv

Where::

  • year = year number, starting from 1995
  • ELY = Centres for Economic Development, Transport and the Environment (ELY) number with two digits:
01  Uusimaa
02  Varsinais-Suomi
03  Kaakkois-Suomi
04  Pirkanmaa
08  Pohjois-Savo
09  Keski-Suomi
10  Etelä-Pohjanmaa
12  Pohjois-Pohjanmaa
14  Lappi
  • lam_id = TMS point id
  • yearshort = two last digits of the year number
  • day_number = the day count number (1-365). 1.1. = 1

 

Swagger description

A Swagger description in YAML format.is available to help accessing the data.

 

Example:

to get TMS point number 101's data for 1.2.2017, GET the URL:

Metadata

Metadata for the TMS points is available through the Finnish Transport Agency's Digitraffic service. Currently the metadata does not include data from all historical TMS points.

Description of the result file format

The result file is a CSV file separated by semicolons (;). The time is the current time in Finland, EET or EEST in the summertime. The CSV files include the following fields (unit in parentheses):

  • TMS point id
  • year
  • päivän järjestysnumero
  • hour
  • minute
  • second
  • 1/100 second
  • length (m)
  • lane
  • direction
  • vehicle class
  • speed(km/h)
  • faulty (0 = validi record, 1=faulty record)
  • total time (technical)
  • time interval (technical)
  • queue start (technical)

 

The value of "faulty" is 1 if:

  • year < 0 or year > 99
  • day < 1 or day > 366
  • hour < 0 or hour > 23
  • minute < 0 or minute > 59
  • second < 0 or second > 59
  • "1/100 second" < 0 or "1/100 second" > 99
  • speed < 2 or speed > 199
  • direction < 1 or direction > 2
  • vehicle class < 1 or vehicle class > 7
  • lane < 1
  • length <= 1
  • length > 39,8

The vehicle classes are:

1 HA-PA (car or delivery van)
2 KAIP (truck, no trailer)
3 Buses
4 KAPP (semi-trailer truck)
5 KATP (truck with trailer)
6 HA + PK (car or delivery van with trailer)
7 HA + AV (car or delivery van with trailer or with a mobile home)
Page updated 01.11.2017