Does anyone know how you can get the length of a polyline in google maps v3? At the moment I am using Haversine fomula but if the polyline meets the start then it calculates the shortest length. Does anyone know how I can calculate the polyline lenght?
Thanks a lot.
Mark
Extend Google Maps API with these functions:
and then you can call:
source: http://groups.google.com/forum/#!topic/google-maps-js-api-v3/Op87g7lBotc