Distance of polyline Google Maps - Cordova Plugin

Hi, i need to know if exists some function for get the distance of a polyline created in cordova plugin google maps. Thanks