Hi Frank, Thank you very very much for your kind reply, I really do appreciate it.
I have looked at the methods of .getLatitudeSpan() and .getLongtudeSpan(). However, I could not understand the return type of both of them, in the API it said, they would return (int), and it also said "in decimal degrees" which I do not understand indeed. To filter the addresses (POI) before displaying them on the map, I need the range of GeoLocations (lat, long) from a starting point on the map to the end point, which would represent the edges of the visible part of the map on screen. Then I 'll be able to use this range to check wether the addresses (POI) will fall in this range or not. Any help will be greatly appreciated. Cheers Hasn On Wed, Jun 16, 2010 at 3:35 PM, Frank Weiss <fewe...@gmail.com> wrote: > If you use: > > com.google.android.maps.MapView.getCenter(), > com.google.android.maps.MapView.getLatitudeSpan(), > com.google.android.maps.MapView.getLongitudeSpan() > > you can compute a lat/long bounding rectangle to filter the items you > add to the List<PoiOverlayItem>, for the given map's state of zoom and > pan. > > Please refer to the MapView reference page: > http://code.google.com/android/add-ons/google-apis/reference > > The reason I recommend using lat/long instead of pixels is because the > filtering at that level is closer to the model instead of the view, > respecting the MVC architecture for UIs. In my applications, the raw > items or points of interest (POI) are already geocoded. Actually in > the Bank of America application, the lat/long bounds are sent as > request parameters to the server, which does the filtering. Also, if > your data were coming from a GeoRss feed, it's highly likely that the > lat/long bounds would be provided in the request, not the pixel > bounds. > > Another way of looking at it is if we assume the raw data is > goeocoded, why bother mapping each of those lat/longs to pixels in > order to filter them? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- (Hasn) Hasnain AlTaiar Web Developer TayTech Smart Solutions http://TayTechs.com h...@taytechs.com Mob. +61 422 04 2629 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en