ition: new google.maps.LatLng(waypoints[i].lat, waypoints[i].long),
                map: map
            });
            google.maps.event.addListener(marker, 'click', (function (marker, i) {
                return function () {
                    infoWindow.setContent(i.toString());
                    infoWindow.open(map, marker);
                }
            })(marker, i));
        }
    }
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC2INJ8GhlsiGBAMrlcWS7R-P3zkG8G01o&callbac