def get_html_path_string(path_cache, color, counter, opacity=1.0, weight=2):
    """
    Internal method. Do not use.
    """
    string = 'var flightPlanCoordinates' + str(counter) + ' = [ \n'
    for pair in path_cache:
        string = string + '{lat: ' + str(pair[1]) + ', lng: ' + str(pair[2]
            ) + '},\n'
    string = (string + """
        ];
        var flightPath""" + str(
        counter) +
        """ = new google.maps.Polyline({
          path: flightPlanCoordinates"""
         + str(counter) +
        """,
          geodesic: true,
          strokeColor: '""" + color +
        """',
          strokeOpacity: """ + str(opacity) +
        """,
          strokeWeight: """ + str(weight) +
        '\n        });\n\n        flightPath' + str(counter) + '.setMap(map);')
    return string
