On Dec 23, 10:40 am, Steven Rhodes <[email protected]> wrote:
> I have found that the RouteBoxer will only return the lat / lng of the
> opposing corners of each grid drawn on the map.
>
> So, if I was to use a "Bounding Box" to determine if the locations in
> my database are within the Bounding Box I would need the other two
> corners that are no provided.
>
> How would I go about retrieving the missing corners of the boxes
> created by RouteBoxer?

A google.maps.LatLngBounds contains:
http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds
SW and NE corners.   Knowing it is a box, you can construct the
missing 2 corners from those (if you need them).

However, a google.maps.LatLngBounds also has this need method:
contains(latLng:LatLng)
boolean
Returns true if the given lat/lng is in this bounds.

Which will let you determine if your LatLng is within it.

  -- Larry

>
> Sorry to ask such basic questions, please understand I am learning
> several new concepts as quickly as possible.
>
> Thank you.
> Steven

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to