Results 1 to 20 of 20

Thread: qt-mobility

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt-mobility

    No. Simply not each route segment is associated with a maneuver. If there is a road intersection and you are driving straight, you are not making any maneuvers yet you are entering a new route segment.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Nov 2010
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qt-mobility

    So how do I get the rest of instructionText()?
    I'm sure they do exist and are valid..

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt-mobility

    This might be the only text the routing server provides.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Nov 2010
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qt-mobility

    I don't get it. Every firstRouteSegmen() has a valid maneuver and instructionText(), but the server does not provide the next ones? Semi-implemented functionality?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt-mobility

    Check the text, it probably contains the description of the whole route.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Nov 2010
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qt-mobility

    Quote Originally Posted by wysota View Post
    Check the text, it probably contains the description of the whole route.
    I was checking it with:
    Qt Code:
    1. qDebug() << segment.maneuver().instructionText();
    To copy to clipboard, switch view to plain text mode 
    and all I got is the first segment before the first maneuver.
    Output is for example:
    Qt Code:
    1. "Head towards Kirkkokatu on Hämeenkatu. Go for 0.4 miles."
    To copy to clipboard, switch view to plain text mode 

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt-mobility

    And how complex is the route segment? What is the shape of the segment?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Nov 2010
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qt-mobility

    The segment is always a straight way between two maneuvers (turns). I set routes on map by clicking the mouse, I make them pretty easy with 1 turn = 1 maneuver and 2 segments.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt-mobility

    So why do you expect more than one text?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Nov 2010
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qt-mobility

    Because there are 2 segmenst and get 1 text.
    No matter how many segments I make in a route, always 1 text and empty ones after that.
    Maybe I'm not getting something in how to retrieve the text or set other segments manyally...

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt-mobility

    Again, if that's how the source you are using (I'm guessing Navteq) returns the data, there is nothing you can do about it. That's probably how it works to avoid having to generate unnecessary data.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Nov 2010
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qt-mobility

    Hm.
    I need to show the whole routes instructions. Like:
    "Head towards blabla. Go for 0.4 miles"
    "Head towards blabla2. Go for 15 miles"
    etc..
    Is that an unnecessary data?

Similar Threads

  1. QT mobility 1.1 integration
    By daarsh in forum Newbie
    Replies: 0
    Last Post: 11th October 2010, 05:55
  2. Problems with Qt Mobility compiling!
    By cueMan in forum Installation and Deployment
    Replies: 1
    Last Post: 28th September 2010, 09:48
  3. Somebody help me, about QT mobility
    By HiJack in forum Qt Tools
    Replies: 2
    Last Post: 24th July 2010, 09:14
  4. Qt Mobility's MM API v/s Qt Phonon
    By rohitratri in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 24th May 2010, 06:33
  5. Qt mobility: bearercloud & bearermonitor
    By marco500 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th March 2010, 14:43

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.