title: Google Maps JS Api - b.get is not a function error(isLocationOnEdge)
body: <p>I want to check if there is a marker on my route.. So i tried to use isLocationOnEdge() and i am getting "TypeError:b.get is not a function" error.
  Here is my code i tried several changes but couldn't fix the problem.</p>
  
  <pre><code>      var directionsDisplay = new google.maps.DirectionsRenderer;
        var directionsService = new google.maps.DirectionsService;
  
        directionsDisplay.setMap(map);
  
        calculateAndDisplayRoute(directionsService, directionsDisplay);
  
        function calculateAndDisplayRoute(directionsService, directionsDisplay) {
        directionsService.route({
        origin: my_position.getPosition(),
        destination: new google.maps.LatLng(my_markers[0][0],my_markers[0][1]),
        travelMode: 'DRIVING'
      }, function(response, status) {
        if (status === 'OK') {
          directionsDisplay.setDirections(response);
        } else {
          window.alert('Directions request failed due to ' + status);
        }
        var isLocationOnEdge = google.maps.geometry.poly.isLocationOnEdge;
        var path = response.routes[0].overview_path;
        for (var i = 0; i &lt; my_markers.length; i++) {
        if (isLocationOnEdge(new google.maps.LatLng(my_markers[i][0],my_markers[i][1]),path))
            {
                console.log("Its in!")
            }
          }
  
  
      });
  </code></pre>