Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Waypoints from GPX File into Navigation #20100

Open
Sonwon1 opened this issue Jun 13, 2024 · 17 comments
Open

Import Waypoints from GPX File into Navigation #20100

Sonwon1 opened this issue Jun 13, 2024 · 17 comments

Comments

@Sonwon1
Copy link

Sonwon1 commented Jun 13, 2024

Describe the idea (required)

When importing a GPX file the import only shows the exact route. The imported file does not show waypoints between the start and end waypoints and does not provide proper turn-by-turn navigation. I propose a new GPX file import process type. When importing the file OsmAnd prompts the user for which import type the user wants:

  1. Exact route without waypoints and without turn-by-turn navigation (existing today).
  2. Waypoint turn-by-turn navigation route that may not be the exact route (new).

Choice one would import the GPX files the same as OsmAnd currently works.

Choice two would add the the first 'wpt' entry in the GPX file into the navigation list as if the user was building a new navigation. Then the second and third and etc. 'wpt' entry in the GPX file into the navigation list. This would continue until the last 'wpt' was added to the navigation list. At this point the waypoint import process would be complete. The user could then edit the navigation list if desired and / or save the navigation for future use. Or just start navigating the route.

This would provide all of the waypoints with turn-by-turn navigation.

Many users of OsmAnd have complained about the waypoints in OsmAnd. This would fix the user's problems with missing waypoints and the lack of proper turn-by-turn instructions.

Tell us about the expected behaviour (required)

I think above explains it all. Please let me know if there are questions.

Tell us about alternatives you've considered (required)

I have tried importing numerous GPX files of various formats to obtain proper turn-by-turn instructions and to load the waypoints without success.

Context (optional)

The current turn-by-turn instructions provided after importing a GPX file are not useful when driving on the Autobahn. For example, OsmAnd shows a right hand turn at the intersection of the Autobahn and does not prompt the user to get off the exit and does not draw the route using the exit. It is very confusing to know which way to go when there are two or more Autobahn intersections and exits to consider since there is only a right hand turn icon splashed down in the middle of the intersections. This caused me to miss my Autobahn exit causing me to drive 35 minutes out of my way to get back on route, more than once.

@yuriiurshuliak
Copy link

Could you share a specific GPX file for us to review?
Also have you tried attaching the track to the road? Does it impact turn-by-turn navigation in any way?

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 14, 2024

Could you share a specific GPX file for us to review? Also have you tried attaching the track to the road? Does it impact turn-by-turn navigation in any way?

"attaching the track to the road" does not work for long routes, 100 - 300 kilometers. It is to slow to be useful. And to be honest I have never waited for it to complete because of how slow it is. Maybe this is fixed in the newest version? Any benchmarks for how must faster the new algorithm is? I just heard about the new algorithm yesterday.

Here is a very short GPX file route that I created to test how OsmAnd handles multiple waypoints. When you go to navigation only the beginning and end show in the navigation list, leaving out all waypoints between start and end. Maybe if the waypoints were not excluded in the navigation list and a trip recalculation could be triggered based on the navigation list would work for cleaning up the turn-by-turn instructions?

Furkot_Test_Route_-_2.gpx.txt

Here is the longer trip that would not provide proper turn-by-turn instructions. Since this trip was only Autobahn most of the way only a beginning and end waypoint was needed. Most of my routes have waypoints spread through out the route for route shaping. This trip had the Autobahn misdirection which caused a wrong turn.

2024_Use_Hotels_-_3.gpx.txt

Please let me know if you would like anything else.

@0709wiwiwi
Copy link

0709wiwiwi commented Jun 14, 2024

The Furkot export track files.

Trjaect: Furkot_Test_Route-2.gpx
Redesign by Cruiser TBT navtrk. (Routing by GH online)

Traject: 2024_Use_Hotels-_3.gpx
Redesign by Cruiser TBT navtrk. ( Routing by GH online)

OsmAnd imports this as regular simple "naked" track.

As the various routers generate trajects along different roads an aternavite along the A5.
2024_Use_Hotels_-_3_wpt_navtrk via A5_by Cruiser.gpx.txt

Video

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 14, 2024

@0709wiwiwi

Let me dig into that, maybe I did something wrong with the export?

@0709wiwiwi
Copy link

0709wiwiwi commented Jun 14, 2024

What I notice is that the track point definition in the Furkot version is much smaller and thus does not follow the roads very detailed and precise, which is what you should normally expect with a track. A road matching tool does probaly not handle that very well. The OsmAnd dev's can probably tell more.

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 14, 2024

@0709wiwiwi

When I created that route I think it was in low resolution. I will create a new file and try to upload it into Cruiser App. Does that app work with multiple waypoints?

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 14, 2024

@0709wiwiwi

I give up trying to create an importable gpx file. So if the routing service I am using cannot create importable gpx files that will provide turn-by-turn instructions then what web based routing service is a user suppose to use? I don't want to create routes on a small tablet screen and https://osmand.net/map is not ready.

@0709wiwiwi
Copy link

0709wiwiwi commented Jun 14, 2024

I will create a new file and try to upload it into Cruiser App. Does that app work with multiple waypoints?

@Sonwon1

What you need is definitely possible.
Import gpx waypoints or routepoints and let the router calculate you a traject inclusive the TBT instructions.
Super simple easy to use and good.

Reference and examples find here:

#14122 (reply in thread)

Cruiser app.
As Android app version but also a brilliant nice desktop version is available.
https://wiki.openstreetmap.org/wiki/Cruiser

BRouter web and RouteYou web (Osrm routing- Set export as Locus gpx file) also generate the simple to use 100% reliable plug and play gpx navtracks. Plus the Cruiser app additionally imports and navigates the Kurviger web (GH routing) designs by the .kurviger files.

Instantly follow an imported navigation track 100% truthfull inclusive correct TBT.

There are sure (motor)bikers in your area who will help you to get started.
Sign up in the Cruiser Github discussion forum and find out more.
https://github.com/devemux86/cruiser._

Exchanges between apps unfortunately remains a pain point which is nevertheless quite easily optimisable with a Gpx navigation track
Highly desirable and such would be very welcome for easy (no hassle) comfortable file exchanges between multiple apps.

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 15, 2024

Thank you for the reply! I will look into these tools to see how I can use them for planning tours!

I like the routing service I am currently using since it allows planning a trip with multiple days in one go and breaks them up into multiple days for the navigation app. It also makes suggestions where the hotel stops would fall on the route. And allows to add time to see an attraction like 15 minutes for a photo stop or several hours for seeing a cave, etc. so the day does not become overly long.

I would like to stay with OsmAnd since it has most of the features I desire. Although the other navigation software you mentioned looks interesting too.

Between the routing and navigation service I will likely have to give up some features to make this all work together with the least amount of effort.

I notice when the gpx file import fails it is usually at roundabouts, freeway exits and intersections. And I have yet to test the new attach to roads algorithm. I read here that the beta has a speed bump so maybe it is usable now?

I thought of another test, will be back shortly.

@0709wiwiwi
Copy link

Fine understood.

I see it this way. Each individual app definitely has features and tools that someone likes more or less. I don't see the range of apps as competitors either, but they can complement each other perfectly. What is mainly missing is a simple uniform file exchange method so that already added valuable elements such as TBT together with the via and shaping point info are not lost in exchanges. However, the exchange situation is currently as confusing unfortunately as it once was in Babylon.

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 15, 2024

I have noticed that to be true!

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 16, 2024

Since gps files are not standard and since importing them to create routes that provide turn-by-turn instructions is hit or miss, mostly miss in my experience. I believe having the option to load the route list with only entries from the gps file would be a doable workaround. It is unlikely all of the gps files are cleaned up so they work with OsmAnd.

@0709wiwiwi
Copy link

@Sonwon1
It would sure be optimal if OsmAnd also offered you this simple mode

@vshcherb
Copy link
Member

@yuriiurshuliak please summarize with screenshots I'm not sure I caught how exactly it would be easier to deal with GPX waypoints.

@yuriiurshuliak
Copy link

Issue Summary:

When importing a GPX file, OsmAnd only shows the start and end waypoints, missing intermediate waypoints and proper turn-by-turn navigation.

Steps to Reproduce:

  • Import a GPX file with multiple waypoints.
  • Observe that only the start and end points appear in the navigation list, missing all intermediate waypoints.

Conclusion:

When importing the tracks Furkot_Test_Route_-2.gpx and 2024_Use_Hotels-_3.gpx, waypoints do not display, although turn-by-turn instructions work correctly after attaching the track to the road.

Proposed Solution:

New import option that includes all waypoints for navigation.

OsmAnd~ 4.8.0#2533m, released: 2024-06-19

video_2024-06-19_17-24-48.mp4
video_2024-06-19_17-25-03.mp4

@Sonwon1
Copy link
Author

Sonwon1 commented Jun 20, 2024

@yuriiurshuliak
I've been thinking about the post about and I am not sure if I was clear of what I am asking for. When I import a GPS file track or route I would like the option to select all waypoints and then OsmAnd router adds the route to follow. I don't want the route to come from the GPS file since that appears to cause turn-by-turn instruction issues in my experience.

Or if there is a way to trigger a route recalculation based on OsmAnd router for the whole route after import that would be great too.

And thank you for looking into this!

@0709wiwiwi
Copy link

@Sonwon1.

I tested the road matching further anyway by using OsmAnd web.
Setting OsmAnd web Track road matching | Java based routing |(10m)|.

Your original Furkot track demo version: Until both roundabouts correct, then jumbled.

  • I checked that import track briefly and noticed a rather nasty error.
    See the image with that track glitch return. Road matching can't handle this.
    Furkot demo trackglitch

I removed that nasty trackglitch from the original file. Find the new file in attachment.
Furkot_Test_Route_-_2_cleaned.gpx.txt

Import into OsmAnd web and the TBT are correct.
Conclusion: Garbage in = Garbage out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants