> Check the docs here:
http://code.google.com/apis/maps/documentation/javascript/reference.h...
Awsome. Didn't see that last night (didn't think to look for it in
the regular v3 reference...)
>
> You can change units by specifying the 'radius' parameter from the default.
> For example, if you want to perform calculations in miles, specify the
> earth's radius as 3963.19 (only an approximation, of course)
>
> computeLength takes Array.<LatLng>, as does computeArea, but the path must
> be closed.
>
> computeArea does not work on a google.maps.Polygon, you'll need to call
> getPath/getPaths and pass through a single array of LatLngs.
Thank you (and thank you for the time you and the other google
engineers spend answering questions here)/
With the reference I could have answered my own questions.
-- Larry
>
> Chris
>
> On Wed, Jan 5, 2011 at 5:20 PM,
geocode...@gmail.com
> <
geocode...@gmail.com>wrote:
>
>
>
> > I just saw the neat API V3 Geometry Library
>
> >
http://code.google.com/apis/maps/documentation/javascript/geometry.html
>
> > The documentation seems a little thin right now. Some questions:
> > - What units do computeLength and computeDistanceBetween return their
> > results in?
> > (I assumed meters, and that loooks to be correct)
> > - Is there anyway to change those units?
>
> > - Does computeLength take a "path" an array of latlng objects (it
> > doesn't seem to, how do we use it?
> > It says this: You may instead use computeLength() to calculate the
> > length of a given path if you have several locations
>
> > - Does computeArea take a path? Will it work on a google.maps.Polygon?
>
> > The examples don't include the length or area methods.
>
> > Thanks,
> > Larry
>
> > --
> > 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
> >
google-map...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B
unsub...@googlegroups.com>
> > .
> > For more options, visit this group at
> >
http://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide quoted text -
>
> - Show quoted text -