The way to generate a path between two coordinates is shown here: http://apidocs.meego.com/1.2-preview...ngmanager.html
Now how to get the list of all the coordinates lying on the generated path (through QGeoRoutingManager) on the Qt widget containing the map?
Added after 1 10 minutes:
SOLVED:
This class calculates the routes:
1. http://apidocs.meego.com/1.2-preview...ngmanager.html
The concerned function in the above class returns the: http://apidocs.meego.com/git-tip/qtm...outereply.html
We need to find all the coordinates on the route, so that the route can be displayed:
1. "QGeoRouteReply" has a member routes (): http://apidocs.meego.com/1.2-preview...ly.html#routes which returns "QList<QGeoRoute>"
"QGeoRoute" class has a function "path" which returns all the coordinates of the path: http://apidocs.meego.com/1.2-preview...oute.html#path
We can use those coordinates through "QPainter" class to draw lines on the map.
Bookmarks