GSoC/GCI Archive
Google Code-in 2013 KDE

Show journey duration for Open Source Routing Machine routing

completed by: Mikhail Ivchenko

mentors: Torsten Rahn, Dennis Nienhüser

Marble is a virtual globe and world atlas — your Swiss army knife for maps. Find your way and explore the world!

Note: You can only claim this task after this task is finished.

Next to the distance of a route the estimated time it takes to reach the destination is an interesting information. Some of the routing backends Marble uses provide this information, but it is not extracted by Marble so far. In this task the estimated journey duration should be extracted from the Open Source Routing Machine backends in the same fashion as done for OpenRouteService. To avoid code duplication some convenience methods will be introduced.

  • Add protected convenience methods to RoutingRunner that help to turn length and duration values into QStrings and attach them to GeoDataDocument. Change OpenRouteServiceRunner to use these methods
  • OSRMRunner.cpp: Extract the value from the "total_time":N field (value is in seconds). Use the methods introduced in RoutingRunner to avoid code duplication.

Helpful links: