Results 1 to 4 of 4

Thread: How to fetch the list of generated path coordinates on a Google Map painted in the Qt

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: How to fetch the list of generated path coordinates on a Google Map painted in th

    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.
    Last edited by TheIndependentAquarius; 16th May 2011 at 13:38.

  2. #2
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: How to fetch the list of generated path coordinates on a Google Map painted in th

    I wonder if there is a way to mark the threads SOLVED here

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to fetch the list of generated path coordinates on a Google Map painted in th

    You can when you enter edit mode.
    But your subject line is too long, if you make room for "[SOLVED]" you will be able to change the title.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: How to fetch the list of generated path coordinates on a Google Map painted in th

    Thanks, Well, at LinuxQuestions.org we have an option in the thread tools to click and then the thread gets marked solved automatically.

    If I shorten the title, this thread may not come up in a Google search.

Similar Threads

  1. Replies: 6
    Last Post: 9th November 2010, 09:58
  2. How to change path where ui_* files are generated?
    By Tiansen in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2010, 13:39
  3. Replies: 8
    Last Post: 17th October 2009, 08:10
  4. Widget not painted properly
    By qwakaw in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 11:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.