function decodePath(encoded, precision) {
  precision = precision || 5;
  precision = Math.pow(10, -precision);
  var len = encoded.length,
    index = 0,
    lat = 0,
    lng = 0,
    array = [];
  while (index < len) {
    var b, shift = 0,
      result = 0;
    do {
      b = encoded.charCodeAt(index++) - 63;
      result |= (b & 0x1f) << shift;
      shift += 5;
    } while (b >= 0x20);
    var dlat = ((result & 1) ? ~(result >> 1) : (result >> 1));
    lat += dlat;
    shift = 0;
    result = 0;
    do {
      b = encoded.charCodeAt(index++) - 63;
      result |= (b & 0x1f) << shift;
      shift += 5;
    } while (b >= 0x20);
    var dlng = ((result & 1) ? ~(result >> 1) : (result >> 1));
    lng += dlng;
    array.push(new LatLng(lat * precision, lng * precision));
  }
  return array;
}
**************************************************************************
geometry Encode / decode points
http://jsfiddle.net/8nzg7tta/
***************************************************************************