cheacy / osmbonuspack

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

List of Nearest POIS #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We are developing an app that needs the following. When calling getPOICloseTo i 
need to get the list of this POIS BUT sorted by lenght (between my point from 
to the particular POI) and it would be great to get the lenght to.

A solution can be to use the Road Manager, but we dont want to do that because 
of the processing time needed to do that. 

Is it possible to add some functionality like this?

Thanks in advance.

What version of the product are you using?
3.1.

Original issue reported on code.google.com by carliski...@gmail.com on 6 Feb 2013 at 3:32

GoogleCodeExporter commented 8 years ago
Apparently, the 2 POI service providers (Nominatim and GeoNames) don't provide 
that feature. So I'm afraid you will have to do it yourself, client-side... 

You can compute the distance from your point to each POI (see 
GeoPoint.distanceTo), and then sort the POI ArrayList using that distance. No 
need for using a RoadManager. 

Original comment by mathieu....@gmail.com on 7 Feb 2013 at 6:16

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 12 May 2013 at 7:00