Leave at specific time

4 posts / 0 new
Last post
Ondercin
Leave at specific time

So i understand the TypeTime=2 and userTraffic=true, but for the life of me I cannot figure out the url for leaving at say 9AM

If I did:
open.mapquestapi.com/directions/v2/route?key=KEY&from=Clarendon Blvd,Arlington,VA&to=2400+S+Glebe+Rd,+Arlington,+VA&outFormat=xml&ferries=1&seasonal=1&toll=1&unit=k&narrativeType=none&timeType=2&useTraffic=true

how would I tell mapquest I want to leave at 9AM

 

 


MQBrianCoakley
There is no function in the
There is no function in the route api to set the arrival or departure time other than compensating for lanes that are HOV at specific times, timed-turned restrictions, and seasonal or specific day of the week closures with the YYYY-MM-DDThh:mm or as a calendar date (MM/DD/YYYY) and local time (hh:mm) formats. All of the documentation for Date/Time routing is here.

Ondercin
Actually there is a way to

Actually there is a way to set the Date/Time of departure: Below I've set the departure time to Jan 30, @ 8AM

www.mapquestapi.com/directions/v2/route?key=MYKEY&from=Milton, Ontario&to=Ottawa, Ontario&outFormat=xml&useTraffic=true&ferries=1&seasonal=1&toll=1&unit=k&narrativeType=none&timeType=2&isoLocal=2019-01-30T08:00
 

 


MQBrianCoakley
Wow, I misunderstood the
Wow, I misunderstood the question. Yes, you are correct that when timeType is set correctly you can set the time to depart.