One approach is to run two searches;

The part that determines the bounds to be searched stays as-is.  If
the search box happens to lie across the dateline, that would result
in a left bound of say +170 and a right bound of say -170.

At the point you do the searching, first do a test.  If left-bound is
mathematically less than right-bound, do an ordinary search.
If not - we're crossing the dateline.  Do a different dual search for
targets between left-bound and 180 and between -180 and right-bound.
If you're using something like MySQL you can still do that in a single
SELECT.  Other search mechanisms may require two passes and merging
the results.
(This assumes the source data is normalised i.e. all longs are between
-180 and +180)

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to