Offline routing using tracks

Started by Sup, May 15, 2024, 12:49:20

0 Members and 2 Guests are viewing this topic.

Sup

Is it possible to get routing using GPX tracks added by me? Ideally I would like to be able to select point A and point B and get a route using my tracks so that the route would display the distance elevation etc. Now when I am using the route planner, the app says "the routing service can't find the start point, please redefine it". Would it work if I had routes instead of tracks in my GPX file?

This applies to cases where there are no paths under my GPX tracks in the map data.


My understanding is that for routing to work, the map used needs to have "routing information". So my question is if I can add my GPX info to that routing information? I tried searching but could not get a definitive answer.
  •  

0709

Locus Pro Classic 3.70.11 - Locus map 4.26
  •  

Sup

I am an OSM contributor and I know about all that. However, uploading these specific files is not really an option (also because some of the trails are non existent - they are virtual paths through open landscape without any visible trails, so it is dubious if they belong to OSM, which should map only things existing in reality).
  •  

Sup

Well, specifically I was using Locus on the Greater Patagonian Trail: https://wikiexplora.com/Greater_Patagonian_Trail

it is a collection of trails, some are on OSM, some not, some could be added, some probaly not (for example especially the one on water, part of the trail assumes you ahve a boat).

But even in a general case - let's say I download a recorded track from somewhere and first want to explore it before adding it to OSM (and anyway, there is quite a lag before the edit in OSM makes it into a map I would be using in Locus). It would be nice if Locus could use this for routing. I am not familiar with the implementation so I have no idea if this is totally out of scope of how it is being done now.
  •  

freischneider

When you add a route to OSM, it is not immediately available on the map. But BRouter has the data a day later. The LoRouter (BRouter) makes an update every 7 (4) days. I think you can also add the data manually.
About routing: You can trace the route in the route planner and all parts where there is a path are automatically routed. If there are areas where there is no path, then you add a manual segment. Quick changeover: press and hold Routing profile.
Turn-by-turn directions are not yet possible. I change the shaping point before the manual segment to a via as a turn-off hint. You can also name the via Attention, so that it indicates the area you want to look at in particular. The name of the via is announced during navigation.
Poco F5, Android 13 / Xiaomi Redmi Note 10 Pro, Android 13
Locus Map 4 Gold (always latest version or Beta)
LM4 User-ID: 11cec7cb5  (Devices-ID poco F5)
  •  

Sup

Quote from: freischneider on May 16, 2024, 11:32:28When you add a route to OSM, it is not immediately available on the map. But BRouter has the data a day later. The LoRouter (BRouter) makes an update every 7 (4) days.
Aha, cool! I did not know that.

Quote from: freischneider on May 16, 2024, 11:32:28Turn-by-turn directions are not yet possible. I change the shaping point before the manual segment to a via as a turn-off hint. You can also name the via Attention, so that it indicates the area you want to look at in particular. The name of the via is announced during navigation.
I personally do not need turn-by-turn directions. Just to be on the same page, I am using the route planner as attached. Between points 1 and 2, Locus correctly uses a trail that is in OSM. between 3 and 4, there is nothing, so a straight line is sensible. However, between 2 and 3 and 4 and 5, there are my tracks that get unused. I guess my request/question is if Locus Map could use these tracks as shaping points automatically maybe? 
  •  

lor74cas

Hello,
I don't know if I understood correctly but you could use the planner for the parts of the route listed on OSM. Then follow the gpx of your tracks or downloaded ones. You could make the GPXs you are interested in visible on the map, go with the planner to their start then continue on the GPX and so on...
Locus Map 4
Locus Map for Garmin
Locus Tasker
  •  

Sup

I already see them on the map, it is not a problem when I need to navigate. ie. know where to go. The use case is counting the distance and elevation change so I know how far I have to go. In the screenshot above, the distance is 43.3 km. However, when I add a few shaping points just before 5 to trace my blue line (which is a path), the real distance is more like 50 km.

Another thing is that elevation says 194m, whichs is clearly wrong, this goes over a high pass from 1800 to around 3000 and then back down to 2000, so it seems the elevation change is taken only from brouter/loroute, it does not actually trace the route to count the elevation gain correctly. Not sure if this is intentional?
  •