emantos / simplelatlng

Automatically exported from code.google.com/p/simplelatlng
0 stars 0 forks source link

CircularWindow.filter() to return sorted collection #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Say I am using CircularWindow.filter()/filterCopy() to get the filtered points. 
I would like to have these points in sorted order close to the actual 
CircularWindow object. Currently the filter returns the CircularWindow 
containing points in the same order as the Collection passed in filter(). I 
have to recheck the distance for each of these points to the actual 
CircularWindow point and reorder. This affects the performance if I have many 
records.

What is the expected output? What do you see instead?
I would like to have the filtered collection is a sorted order of the distance 
along with the distance value(may be a new method in LatLng class, that can 
return the distance).

What version of the product are you using? On what operating system?
1.1.0, WinXP and Linux

Please provide any additional information below :
I'm not sure it's worth the trouble.

Original issue reported on code.google.com by vinnakot...@gmail.com on 11 May 2013 at 2:09

GoogleCodeExporter commented 8 years ago
This has been implemented as of version 1.2.0.

See CircularWindow.filterCopySort() for details.

Original comment by TylerCo...@gmail.com on 13 May 2013 at 1:28