Report journey length and duration to ownload when uploading routes
completed by: Illya Kovalevskyy
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!
Marble can store routes and bookmarks in an owncloud server. The upload API needs information about the length and duration of routes that are uploaded. Currently this is fixed to 0 each. This task should change it and report the correct values instead.
- Make sure to update to latest git master of Marble. The OpenRouteService routing backend currently reports both duration and length, others will follow. Use the OpenRouteService backend for testing.
Configure Marble to enable owncloud synchronization. Use the server oc13dev.nienhueser.de and the user test, password test for testing.
In OwncloudSyncBackend.cpp there are lines commented with
//Durationpart and //Distancepart where the correct values need to be written. Parse the opened route in that method and extract the values of duration and length from it. The route .kml document can be parsed using GeoDataParser. It contains a Document as the second child of the root GeoDataDocument. The first placemark of that Document has extended data items with the values "length" and "duration" where the needed data is stored as a double (in seconds) and a time string in iso format.
Helpful links:
- The easiest way to reach Marble developers to help you is to visit the #marble IRC channel in freenode. Watch out for Earthwings
- http://marble.kde.org/