anchor.diff:                addSavedMarker(marker, map);
               }
           })
  -          hereURL = "https://route.cit.api.here.com/routing/7.2/calculateroute.json?app_id=9mBaxBeJ7mApiH1ztTZo&app_code=5yfWfBxENAXQsu5zhv6Lcw&waypoint0=geo!41.8764517,-87.6554024&waypoint1=geo!41.8811267,-87.6476527&mode=fastest;bicycle;traffic:disabled&avoidareas=41.87663,-87.65073;41.87661,-87.65071"
  +          // var routePath = new google.maps.Polyline({
  +          //   path:  [
  +          //     new google.maps.LatLng(41.876580000000004, -87.65322),
  +          //     new google.maps.LatLng(41.87664, -87.64839),
  +          //     new google.maps.LatLng(41.876670000000004, -87.64722)
  +          //   ]
  +          // });
  +          // routePath.setMap(map);
  +
  +
  +
  +
  +
  +        new AutocompleteDirectionsHandler(map);
  +
  +        google.maps.event.addListener(map, 'click', function(event) {
  +          addSavedMarker(event.latLng, map);
  +        });
  +
  +      } //end of map init
  +      var hereRoute = function(start,end){
  +        console.log("function was successfully called")
  +        console.log(start);
  +        console.log(end);
  +
  +          hereURL = "https://route.cit.api.here.com/routing/7.2/calculateroute.json?app_id=9mBaxBeJ7mApiH1ztTZo&app_code=5yfWfBxENAXQsu5zhv6Lcw&waypoint0=geo!"+ start[0] + ',' + start[1] + "&waypoint1=geo!"+ end[0] + ',' + end[1] + "&mode=fastest;bicycle;traffic:disabled&avoidareas=41.87663,-87.65073;41.87661,-87.65071"
   
             var path = []
             $.ajax({
  
positive.code:               return path;
              })
              console.log(path);
          // addSavedMarker(markerStart, map);
  
            var routePath = new google.maps.Polyline({
              path:  [
  
negative.code:               new google.maps.LatLng(41.876670000000004, -87.64722)
              ]
            });
            routePath.setMap(map);
      }
  
  
  
  
  
  
  
  
        function addSavedMarker(location, map) {
         // Add the marker at the clicked location, and add the next-available label
  