> NorthEast (topRight) points (70.495574, -102.304688)
> topRight[0] = 70.495574;
> topRight[1]= -102.304688;
>
> SouthWest(BottomLeft) points (-59.712097, 47.109375)
> BottomLeft[0] =-59.712097;
...
> and the actual point is (30.145127,75.234) between those top and
> bottom points
Your search logic tests to see if 75.234 is more than 47.1093 (it is)
and less than -102.304 (it isn't)
If your searches cross the dateline (-180/+180) you'll have to work
harder.
Test to see if the search does cross the dateline,
if (leftbound > rightbound)
and then do a different search.
if (target > leftbound and rightbound > target)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---