New approach that makes more sense:

                  int latSpan = mapView.getLatitudeSpan();
                  int longSpan = mapView.getLongitudeSpan();
                  GeoPoint mapCenter = mapView.getMapCenter();
int topLatitude = mapCenter.getLatitudeE6() + (latSpan/2); int bottomLatitude = mapCenter.getLatitudeE6() - (latSpan/2); int leftLongitude = mapCenter.getLongitudeE6() - (latSpan/2); int rightLongitude = mapCenter.getLongitudeE6() + (latSpan/2);

But this values:
                  int latSpan = mapView.getLatitudeSpan();
                  int longSpan = mapView.getLongitudeSpan();

are giving me 36000000 and 0 :/

On Jun 25, 2010, at 9:15 PM, Frank Weiss wrote:

Exactly. You need to pass the neLatitude, neLongitude, swLatitude,
swLongitude as query parameters to your back end web service, which
then returns only POIs whose latitude and longitude fall within those
bounds, like this Javascript Google Map does:

http://myhome.bankofamerica.com/?findmlo=94114#/findmlo/94105

Notice that it even handles panning and zooming.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Pedro Teixeira

www.pedroteixeira.org

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to