Hi
  I tested with some latitude and longitude its working fine,If top -
left lon is negative and bottom-Right is positive then how we can
search the within the bouned rectangle

On Dec 12 2008, 2:44 pm, Rossko <[email protected]> wrote:
> >    Now I have to Two lat and Lon pairs for a rectanle like Top-left
> > and
> > bottom-Right pairs,Now I need to find the top-Right corner point and
> > the Bottom-left corner point lat and lon,
>
> It's trivial, but you don't need to do it anyway.
>
> Top-left lon = left bound of your rectangle.
> bottom-right lon = right bound of your rectangle
> Database search something like
>    SELECT cities FROM mytable WHERE (lat > left bound) AND (lat <
> right bound) ...
>
> That's the concept BUT
> Be careful that positive and negative numbers are preserved in your
> scripts
> If your rectangle is ever going to get near the dateline in the
> Pacific you will need to upgrade the arithmetic a bit to cope with it
> crossing the dateline
>
> 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