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.
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.
Flow data compared to Google's
See SETUP for instructions on how to get the project components up and running.
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
- Is there a database example? Yes, check out SETUP.
- Can you decode a TomTom OpenLR location? You can find the decoder to be used in the TomTomDecoder class.
- How do you visualize the data in QGIS? Check this video.
- 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.
- TomTom OpenLR implementation: https://github.com/tomtom-international/openlr
- HERE Traffic API: https://developer.here.com/documentation/traffic/dev_guide/topics/incident-data.html
- PostgreSQL: https://www.postgresql.org
- PostGIS: https://postgis.net
- pgRouting: https://pgrouting.org
- jOOQ: https://www.jooq.org