Hello,
I am trying to use a bounding box to limit the locations returned to the
users, but I don't see why this isn't working.
This is the bounding box, and the center of where I am doing my offset:
35.71699581199971 < 36.0049961 < 36.29299638800029 <== latitude
-84.3104074880003 < -84.0224072 < -83.73440691199971 <== longitude
So, I call the function with these parameters:
getFromLocationName("pilot", 10, 35.71699581199971, -84.3104074880003,
36.29299638800029, -83.73440691199971)
and it returns this, where I include the latitude and longitude for each
location, and most of these are outside the bounding box:
Pilot, IL(41.0434706,-88.0705319)
Pilot, IL(40.2274008,-87.8353278)
Pite River(65.829223,19.7676296)
Pilot Travel Center 1200 S Hillcrest Dr Sulphur Springs, TX
75482(33.1165057,-95.6342561)
Pilot 3300 Arkansas 391 North Little Rock, AR 72117(34.7812136,-92.1279496)
Pilot Travel Center 493 E State Road 44 Wildwood, FL
34785(28.8743055,-82.0952854)
Pila 360 01 Pila(50.1804514,12.926315)
Pilot 33570 Lussac(44.9869288,-0.0854641)
Pila 345 33 Trhanov(49.4137006,12.8563052)
The Pilot 25 Upper Stone St Maidstone Kent ME15 6EU(51.2698376,0.526036)
I expect nothing to be returned if there are no results.
Thank you for any help.
--
Resume & Projects: http://careers.stackoverflow.com/jamesblack
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey
--
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