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:           mapTypeControl: false,
            center: myPosition
          };
          var map = new google.maps.Map(document.getElementById('map'), mapOptions);
  
  
          $.ajax({
  
negative.code: 
              console.log(response);
  
  
                var routePoints = response['routes'][0].overview_path
                    var start = ([routePoints[0].lat(), routePoints[0].lng()])
                    var end = ([routePoints[routePoints.length - 1].lat(), routePoints[routePoints.length - 1].lng()])
                    var adjustedRoute = hereRoute(start , end);
              me.directionsDisplay.setDirections(response);
            } else {
              window.alert('Directions request failed due to ' + status);
  