DATEX traffic information
The Norwegian Public Roads Administration (NPRA) offers weather data, travel times, webcamera images and traffic information via DATEX II.
DATEX is a European standard for the exchange of traffic information between different actors and is based on messages in the XML format. DATEX is short for "DATa EXchange between traffic and travel information centres".
We are currently offering information about weather, travel times, camera images and traffic in version 3.1 format. Using the service is free of charge.
DATEX-publications
Here you will find information about the publications from our DATEX node. All publications are published as pull services.
Weather data
This publication contains meteorological measurements from weather stations along national and county roads. We update it every 10 minutes.
Publications
The weather data publication contains two publications, one for the measurements and one for the geographical location of the weather stations. When using this information, please cite the Norwegian Public Roads Administration as the source.
You must register to use the links.
Measurements
This publication contains meteorological measurements from weather stations along national and county roads in Norway. We update it every 10 minutes.
- Version 3.1: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetMeasuredWeatherData/pullsnapshotdata
Geographical location
The publication specifies the geographical location of the weather stations in the form of coordinates, road numbers, and station names.
- Version 3.1: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetMeasurementWeatherSiteTable/pullsnapshotdata
Feedback welcome
Feel free to email us feedback or suggestions for how to improve the weather data publication.
Webcams
The webcam publication transmits updated images from roadside cameras. These provide an impression of traffic flow, weather and road surface conditions.
The Norwegian Public Roads Administration has deployed a number of webcams along the road network. They are mostly located in places with challenging weather, at ferry quays, mountain passes and in urban areas with heavy traffic.
The images from the cameras are updated with varying frequency. This depends on the camera type and how communication with the cameras is set up.
Some cameras are set up to alternate between different directions and lanes, so the image selection may differ between updates.
Operation and maintenance
Many cameras are located in places with challenging weather conditions, and from time to time they may be out of service. This may be due to power outages, failed communication with the camera or other technical issues. It may take some time for the maintenance staff to find the error and correct it. Therefore, a camera may sometimes be out of service for a few days or it may show an old image.
Publication
The webcam publication provides access to all our webcams. When using the information they provide, please cite the Norwegian Public Roads Administration as the source.
You must register to use the link.
- Version 3.1: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetCCTVSiteTable/pullsnapshotdata
Data protection
The webcams have been set up to give users an indication of traffic conditions such as congestion, weather and road surface conditions. The cameras do not take pictures of individuals, and it should not be possible to identify people or vehicle registration numbers in the photos.
Please contact us by email if you discover images where personal data are not sufficiently protected, or if you have other comments on the service.
Travel times
This publication contains travel times in seconds between two measurement points. We update travel time for all road sections every five minutes.
The publication contains travel times for
- the main road network around Oslo, Bergen, Stavanger, Kristiansand and Trondheim
- the E18 from Oslo to Aust-Agder
- the E6 from Ås to Kolomoen
- the E8 from Skibotn to the Finnish border
Publication
The travel time publication contains two publications, one for measurement data and one for the geographical location of measurement points. You must register to use the links.
Measurements
The publication contains travel times for all of Norway. Recipients must filter by town/location themselves. The publication contains measured travel times in seconds, and we update them every five minutes. Delays are calculated based on manually determined normal travel times for each distance.
Version 3.1: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetTravelTimeData/pullsnapshotdata
Geographical location
The publication contains the geometry, name and identifier of the distances for which we measure travel time. We update the publication when changes are made to the location of measuring stations or distances.
Version 3.1: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetPredefinedTravelTimeLocations/pullsnapshotdata
Description of the dataset
The information we use to generate travel times is collected using antennas along the road. The antennas register passing vehicles with AutoPASS tags.
Calculating travel times
Travel times are generated when measuring stations register an anonymous data element in the AutoPASS tags. Tag data for two consecutive stations are then combined into one single journey. Travel time is calculated as the average of travel times for vehicles that have driven a given distance within an interval of five minutes.
The algorithm that calculates travel times takes several factors into account. For example, very short and very long travel times will be discarded. Delays are calculated against a manually measured normal travel time. Normal travel time is often based on speed limits, but local knowledge of traffic on a certain route may make us adjust the normal travel time.
We do not measure travel time in public transport lanes. We also do not distinguish between travel times for different types of vehicles, such as passenger cars and lorries.
Measuring routes
There are measurement points for travel times in Oslo, Bergen, Trondheim, Stavanger and Kristiansand. In addition, there are measuring stations along the E18 from Oslo to Agder, along the E6 from Ås to Kolomoen and on the E8 from Skibotn to the Finnish border.
The major commuter routes in and around the cities are covered by registration points because delays are most frequent on these routes.
Delay trends displayed
Delay data are provided with a flag that shows the delay trend, meaning that delays on a certain route are increasing, stable or decreasing. This is for use on information boards or map displays of traffic flow.
Give us your feedback!
Feel free to email us feedback or suggestions for how to improve the travel times publication.
Road traffic information
This publication shares information about situations on or along roads that may cause delays or increased risk of accidents in traffic.
Roadworks, temporary traffic control measures such as closures, traffic accidents, storms, slides and floods may affect traffic flow. We continuously publish any messages we receive about such issues in the DATEX II format.
Publication
We issue traffic messages in a publication that covers the entire country. When passing on this information, please cite the Norwegian Public Roads Administration as the source.
You must register to use the link.
Version 3.1: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetSituation/pullsnapshotdata
Coverage
The publication includes situations that may affect traffic on public roads in Norway.
Quality
The Norwegian Public Roads Administration receives, verifies and distributes continuous information about situations that may affect traffic. We indicate as precisely as possible the time from when an incident occurs and until the information is distributed, the geographical location of the incident, and the accuracy of the information content.
Filtering
The publication contains information about all situations, ongoing and planned, that may affect traffic. The information comes from all over the country.
When using the Traffic Information publication, you can use filters to limit the amount of information about a specific topic. This could include accidents, maintenance or conditions. You can read more about how filters can be applied in the DATEX specifications.
How to use DATEX
The DATEX service is available to the media, various providers of traffic information and other actors interested in using information from the NPRA in their own services. Use is subject to the Norwegian Licence for Open Government Data (NLOD).
To access DATEX information, you must first request access. You can then use our publications. When you request access, we register you as a DATEX user. This allows us to inform you about upgrades and other reasons why the node may be down.
Learn how to use DATEX
At DATEX II Academy you will find guides, specifications and other information that can be helpful when using DATEX II.
Documentation and sample data
Follow the link to download DATEX documentation, such as an overview of endpoints, current publications and associated schemas (wsdl). You can also see sample data for publications, showing the structure of the data and the possibilities involved.
Useful functions
Several functions may be useful to know about when you work with DATEX publications.
Check if a publication has been changed
You can use the "If-Modified-Since" header to check if a requested publication has been changed since a particular date and time.
See the UML model
The UML model shows the data relationships in the DATEX model for the given specification.
View DATEX data in maps without using the DATEX service
You can view DATEX data in maps via WMS/WFS.
See DATEX data at Vegvesen trafikk
Vegvesen trafikk is traffic information service provided by the Norwegian Public Roads Administration. Among other things, it publishes DATEX data in maps.
Any questions?
For more information, please contact us by email.