calculateRoute between two point for past

Hi everyone,
In calculateRoute API, How Can I calculate Route for last year?
For instance in the code below when I have changed the departureTime for last year I have got error.

#[coordinates]
start_station_latitude = 40.749156
start_station_longitude = -73.991600
etart_station_latitude = 40.744449
etart_station_longitude = -73.983035
departureTime=“2019-09-15T11:27:58”#2018-07-12T06:50:23
tomtomURL = “%s/%s,%s:%s,%s/json?key=%s&departAt=%s&traffic=false” % (apiURL,sourceLat,sourceLon,destLat,destLon,api_key,departureTime)
#print(tomtomURL)
getData = urlopen(tomtomURL).read()
jsonTomTomString = json.loads(getData)

Hi,

Calculate Route doesn’t allow to provide departure time in the past.
Traffic Stats is the service you are probably looking for.

1 Like

Hi,

Traffic Stats API is a private service, which requires a separate evaluation agreement if you wish to evaluate it. Please use the below form to request access to the API:

Traffic Stats request access

Our sales representative get in touch with you to arrange the evaluation agreement.

1 Like