I am working on a project where I have been asked to provide the least amount of distance, and its duration as an estimate based up a journey between two or more postcodes in the uk.
e.g. http://maps.googleapis.com/maps/api/distancematrix/xml?mode=driving&TrafficModel=optimistic&sensor=false&language=en-EN&units=imperial&origins=mk109hs, uk&destinations=WC1N 1LE, uk
As part of the google distance api call I am choosing mode=driving.
In terms of the Traffic Model I am choosing optimistic.
Google developer documentation says; "optimistic indicates that the returned duration_in_traffic should be shorter than the actual travel time on most days, though occasional days with particularly good traffic conditions may be faster than this value." https://developers.google.com/maps/documentation/distance-matrix/intro
Does this mean; a.) I should receive the least distance to the destination? b.) I should receive the least duration to the destination?
The reason I ask is that there could be more miles to travel but does not take as long due to the speed you able to travel at.