taxi.type chaged to google.maps.TravelMode, for google to get distances matrix