Tracks sort add a "All tracks of through the current area" ?

cnchip shared this idea 2 years ago
Collecting votes

Because often we are interested only in the current area, such as the current windows of map.

However in sort menu, only support distance to start or end, only the two points ?.

But this feature is nearest track to a center point.

See below, if I need only track a, b and c.

Thank you very much !

85710075035212006dae47453aec3a7f


59af1fdaf8c9f4ab786ffc90fb7bdf97

Comments (13)

photo
1

Yes, we have "nearest points" and it will be good to have "nearest tracks".

photo
1

Hi Menion, we chatted about that long time ago. I just checked the data model or tracks.db: LON and LAT are both indexed. You know the bounding box of the displayed area. So the SQL ... AND ... -statement needed is no miracle, right ?

The locations table can have 7 digit number of entries, I know, but with your indexing (Latid, Longit) that should not be a killer. Have you ever tried on an Android ?

photo
1

Hi guys,

Michael, to be true, I did not tried it. I'll discuss this with Petr next week, he is more skilled with these databases systems then me.

Anyway meanwhile you should be able to use "Search screen > tracks". There is option to search for a tracks nearest to certain place (map center for example).

photo
1

Can you pls. help me out, Menion. I installed 3.24 Pro this evening

But in the Tracks screen I do not see a search function. Going to general search, I see a track search that looks for a text pattern only. Next I look into nearest points - all options are checked, incl. track waypoints (but not "only visible"): nothing.

I have a visible track near the center and tons of invisible ones, too. At least their start and end points should appear, right ? Can you pls. advise ?

photo
1

Dont input text at search.. just hit seach.


General seach..

photo
1

Sure. You were there ...


Try:

  1. move map screen center to place where you wants to search around
  2. open menu > search > search in tracks
  3. leave edit field empty! and just check "track around > map center"
  4. hit search


Locus should now search for all tracks and print result sorted by distance to defined location (map center). Hope this will work as expected. General purpose of this screen was a "text search", but this should work as well.

photo
1

Bingo - that's it. TXs to you both!

photo
1

I have try. If I left search text empty, select "screen center" it shows me to much tracks, not only nearest. May be we need here radius field for additional filter?

photo
1

Ah, sorted.. Ok! Thanks!

photo
1

But sorted by start or end point, not by any point nearest to screen center, rigth?

photo
2

Hello,

unfortunately I do not understand.


Anyway you forced me to check source code and I was little bit "incorrect". This search system just take first and last track point, create a straight line between them and then use this line for comparing to selected location. So it is not exactly precise, mainly for rounded trips. Consider it as workaround for this idea for now. Thanks

photo
1

Menion, let me show use case. When I somewhere on the road, and I have recorded track for that road and track was hidden. How to find and show track using my GPS location? Will be too hard to order all track-points of all available tracks (a lot of calculation)?

Did you use JOSM? It can download trackpoints in downloaded area. Is it possible to do like JOSM?

photo
photo
1

An additional idea to this topic: additional to start and end coordinates, you could define a calculated middle point of a track. And then you could optional find/sort tracks using this point.


For my use: I start and end very often at the same location, but I walk in different directions (the northern mountains, to the east hills, ...) and my walks are sometimes longer or shorter (afternoon walk or whole day hike). So, this middle point of the track is much more significant for sorting or finding tracks around a given location, than start and end point in this situation.