Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Smooth out gps path on map (QLocation), how to ?

Smooth out gps path on map (QLocation), how to ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 493 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marek
    wrote on last edited by
    #1

    Hi
    I have recorded some route and I have gps data (lat,lon) for a number of points on that route (every 30 seconds).
    I would like to display this route on a QML map and make it smooth. Problem is that gps data vary with every point so displayed path is rough.
    My idea is to take some points from that route (like every minute) and use RouteQuery with multiple addWaypoint and use it for RouteModel to display route along these points, so it should prepare smooth route for me, but there will be a lot of waypoints in this query (I'm using MapBox)
    Is there a better way to do this ?

    Best,
    Marek

    M Pablo J. RoginaP 2 Replies Last reply
    0
    • M Marek

      Hi
      I have recorded some route and I have gps data (lat,lon) for a number of points on that route (every 30 seconds).
      I would like to display this route on a QML map and make it smooth. Problem is that gps data vary with every point so displayed path is rough.
      My idea is to take some points from that route (like every minute) and use RouteQuery with multiple addWaypoint and use it for RouteModel to display route along these points, so it should prepare smooth route for me, but there will be a lot of waypoints in this query (I'm using MapBox)
      Is there a better way to do this ?

      Best,
      Marek

      M Offline
      M Offline
      Marek
      wrote on last edited by
      #2

      Idea with multiple wayPoints does not work, to many wayPoints...

      1 Reply Last reply
      0
      • M Marek

        Hi
        I have recorded some route and I have gps data (lat,lon) for a number of points on that route (every 30 seconds).
        I would like to display this route on a QML map and make it smooth. Problem is that gps data vary with every point so displayed path is rough.
        My idea is to take some points from that route (like every minute) and use RouteQuery with multiple addWaypoint and use it for RouteModel to display route along these points, so it should prepare smooth route for me, but there will be a lot of waypoints in this query (I'm using MapBox)
        Is there a better way to do this ?

        Best,
        Marek

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @Marek said in Smooth out gps path on map (QLocation), how to ?:

        I would like to display this route on a QML map and make it smooth

        Have you try your app displaying a live GPS feed?
        If so then you may want to use your log file as source, take a look at this article.

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        M 1 Reply Last reply
        0
        • Pablo J. RoginaP Pablo J. Rogina

          @Marek said in Smooth out gps path on map (QLocation), how to ?:

          I would like to display this route on a QML map and make it smooth

          Have you try your app displaying a live GPS feed?
          If so then you may want to use your log file as source, take a look at this article.

          M Offline
          M Offline
          Marek
          wrote on last edited by
          #4

          @Pablo-J-Rogina Thanks for answering my question but I don't think this would help
          I have my gps coordinates what would be benefit of using live gps feed ?
          I'm using MapPolyline to create and display route taken by someone, but sometimes gps in phone gives odd values a few meters off, from time to time, so displayed path is not smooth as it is when I request routeModel from external provider with a couple of waypoints.
          Best,
          Marek

          Pablo J. RoginaP 1 Reply Last reply
          0
          • M Marek

            @Pablo-J-Rogina Thanks for answering my question but I don't think this would help
            I have my gps coordinates what would be benefit of using live gps feed ?
            I'm using MapPolyline to create and display route taken by someone, but sometimes gps in phone gives odd values a few meters off, from time to time, so displayed path is not smooth as it is when I request routeModel from external provider with a couple of waypoints.
            Best,
            Marek

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @Marek said in Smooth out gps path on map (QLocation), how to ?:

            I have my gps coordinates what would be benefit of using live gps feed ?

            To check how your QML map application plays "smoothly" with some other GSP data source other than your data log file.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            M 1 Reply Last reply
            0
            • Pablo J. RoginaP Pablo J. Rogina

              @Marek said in Smooth out gps path on map (QLocation), how to ?:

              I have my gps coordinates what would be benefit of using live gps feed ?

              To check how your QML map application plays "smoothly" with some other GSP data source other than your data log file.

              M Offline
              M Offline
              Marek
              wrote on last edited by
              #6

              @Pablo-J-Rogina its about a method you draw the line on the map. I know two:

              1. create MapPolyline
              2. use routeModel
                However RouteModel is using MapPolyline internally so it is only the question of accuracy of gps data and I don't have control over this.
                I have 1000 gps points, I could use them in groups, 20 points to single MapBox query, retrieve gps points returned by MapBox and create my MapPolyline from these points. But it looks to me like some awkward idea.

              Best,
              Marek

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved