Skip to content

This repository contains an implementation to transfer traffic incident data requested from HERE Traffic API to an OpenStreetMap database. This allows to view HERE traffic data in GIS Viewer, such as QGIS.

License

Notifications You must be signed in to change notification settings

FraunhoferIVI/openlr

Repository files navigation

Here20SM

Reference implementation of the TomTom OpenLR standard to map traffic information provided by the HERE Traffic API on an OSM road network. The implementation came about as part of a master’s thesis, involving the HTW Dresden faculty of Geoinformatics and the IVI Dresden.

If you want to view the master's thesis, you can ask the Fraunhofer IVI for access.

Index

  1. General Info
  2. Setup
  3. Database tables
  4. FAQs
  5. Technologies
  6. License

General Info


Reference implementation in Java. Uses the TomTom OpenLR standard and the TPEG2-OLR ISO/TS 21219-22 standard to map traffic information on a road network based on OpenStreetMap data.


qgisVisualization QGIS visualization

FlowHereVsGoogle Flow data compared to Google's

Setup


See SETUP for instructions on how to get the project components up and running.

Database tables


The database should contain the following tables before running the program:

  • form_of_way: physical characteristics of a street. For more information check TomTom OpenLR White Paper.
  • functional_road_class: indicates the importance of the road in the network. For more information check TomTom OpenLR White Paper.
  • kanten: lines in the road network.
  • knoten: nodes in the road network.
  • metadata: metainformation for the map, map owner, map name and bounding box information.

After running the program the following tables should be added to the database:

  • flow_v7: shows information about traffic flow
  • flow_affected_v7: contains all lines affected by flow
  • incidents_v7: shows information about incidents
  • incident_affected_v7: contains lines affected by incidents
  • kanten_flow_v7: key table
  • kanten_incidents_v7: key table

For more detailed information see TABLES

FAQs


  1. Is there a database example? Yes, check out SETUP.
  2. Can you decode a TomTom OpenLR location? You can find the decoder to be used in the TomTomDecoder class.
  3. How do you visualize the data in QGIS? Check this video.
  4. Can I use a different spatial database? Yes, it is possible to use another spatial database. But you need to implement your own map loader using the MapLoader Interface. In addition, changes in the pom.xml (database connection and Jooq dialect), the DatasourceConfig class and the ApiRequest class must be made.

Technologies


License


Apache License, Version 2.0

About

This repository contains an implementation to transfer traffic incident data requested from HERE Traffic API to an OpenStreetMap database. This allows to view HERE traffic data in GIS Viewer, such as QGIS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages