Opened 15 years ago

Last modified 10 years ago

#35 assigned enhancement/feature request

sort items by distance in the adress search dialog

Reported by: KaZeR Owned by: KaZeR
Priority: major Milestone: version 0.6.0
Component: gui/internal Version: git master
Severity: Keywords: address, search, order
Cc: nick@…


Most of the time, you want to go to the nearest city whose partial name matches your query. So items in city search should be sorted by distance, not necessarily by name (maybe put an option to choose how to sort).

Change History (8)

comment:1 Changed 15 years ago by KaZeR

  • Milestone changed from version 0.0.3 to version 0.0.4
  • Status changed from new to assigned

Postponed to 0.0.4

comment:2 Changed 14 years ago by avantman42

Just adding a vote for this issue

comment:3 Changed 14 years ago by KaZeR

  • Component changed from gui/cegui to gui/internal
  • Version changed from 0.0.3 to svn

comment:4 Changed 14 years ago by Singesang

I think that a complete different search mask for that would be needed. That dialog could also be used for poi search then.

comment:5 Changed 13 years ago by kazer

  • Milestone changed from version 0.2.0 to version 0.3.0

Postponed for 0.3

comment:6 Changed 12 years ago by number6

  • Cc nick@… added

The problem is, to find the "closest" town to you, you would need to compute the route from you to that town.

The town can then go on a fib-heap

Repeat for N towns, all starting with the letter's G-A-L

Sort the stack.

comment:7 Changed 12 years ago by zoff99

3 years and no progres???

just do this: = lat. at center of screen now
s.lon = lon. at center of screen now = lat. of serach result item
sr.lon = lon. of serach result item

sort by d

its not accurate, but fast and easy to do

comment:8 Changed 10 years ago by usul

  • Keywords address search order added
  • Milestone changed from version 0.5.0 to version 0.6.0

Sorry for disappointing you, but as you see, we had very limited dev ressources. If you like to contribute code, just append a diff file.

I like to add to your idea, that we should make this search criteria visible to the users. Otherwise they might be confused, as mosts lists everwhere are sort in a alphabetical manner. So to avoid confusion, we might list the distance or at least present buttons that allow to toggle the sort criterias

Version 0.6 will cover such UX improvements that are less essential.

Note: See TracTickets for help on using tickets.