Wed, 07/22/2015 - 10:02
#1
Route Matrix with Traffic
When using route matrix, can travel times be calculated based on current traffic conditions? I know this can be done for a route request but I tried to do it with a route matrix request and it didn't seem to do anything.
That would be great, thanks Jonathan.
Hi Jonathan,
So sorry this reply is coming so long after you got back to me. I put the project that I was working on that uses mapquest on the back burner and haven't checked out the forum in a while.
I am trying to use mapquest and route matrix to find how far a person could travel in a given time. Currently the way route matrix works the returned distance values are useful but not so much the time values. If there happens to be very little to no traffic the time values will be accurate, but in more populated areas like cities the times are very off. This would make the information I return to a user not as useful (it would return telling them they can travel 8 miles in 10 minutes but really, with the current conditions, they could only get 3 miles in 10 minutes).
So the issue that you brought up is definitely valid, but the way the product I am making would work is by submitting a request for the information each time it is used. I would never store the information for more than a few minutes.
Thanks again for all the help.
George
As it has been a few months and I have not seen any changes made regarding traffic times with route matrix responses, I am wondering if this is still something that is being considered? Or should I look elsewhere for what I am trying to achieve?
Hate to resurrect an old thread, but has anything changed? I tried affecting realTime by including a useTraffic parameter but it doesn't seem to have an effect; my duration traveled between two locations seems to be the lowest possible duration.
My use case is that I have a small microcontroller that polls time traveled for my commute home. If the duration is below a certain amount, then the LED attached to the controller turns on. It's a visual notification of traffic conditions that tells me whether or not I can go home.
My first draft works but it's using the Google Maps API and the Maps API does not include traffic conditions unless you have a business account. Can I do this using MapQuest's API?
This is what I'm using for a request:
http://www.mapquestapi.com/directions/v2/route?key=<KEY>&from=4255 Great America Pkwy,SantaClara&to=360 S Market Street,SanJose&callback=renderAdvancedNarrative&ambiguities=ignore&outFormat=json&inFormat=json&json={locations:["4655 Great America Pkwy Santa Clara, CA 95054","360 S Market Street San Jose"],options:{avoids:[],avoidTimedConditions:false,useTraffic:true,doReverseGeocode: true,shapeFormat:raw,generalize:0,routeType:fastest,timeType:1,locale:en_US,unit:m,enhan
I have the following use case based on the distance matrix api:
The problem i'm facing right now is, that the delivered travel times are based on the optimum conditions.
Is there any plan to include historic traffic conditions like Google does? I'm imagining something like handing over a parameter to the API to choose between optimum conditions and assumed conditions based on historic data.
cheers