title: Google Distance Matrix Api: travel time with traffic
body: <p>I am trying to get the travel time with traffic between 2 sets of lat/long coordinates. I can call the Google Distance Matrix API, but I am only getting travel time <strong>without</strong> traffic. The <code>API notes</code> which I have read say to use a parameter called departure_time. Here is the excerpt:</p>
  
  <blockquote>
    <p><em>departure_time specifies the desired time of departure as seconds since midnight, January 1, 1970 UTC. The departure time may be specified by Maps for Business customers for to specify the departure_time to receive trip duration considering current traffic conditions. The departure_time must be set to within a few minutes of the current time.</em></p>
  </blockquote>
  
  <p>I found this website to give me that time: epochconverter</p>
  
  <p>However I am still getting the same travel time every time. Here is a sample request, the departure_time parameter would need to be updated (not that it matters).</p>
  
  <p><a href="https://maps.googleapis.com/maps/api/distancematrix/xml?units=imperial&amp;departure_time=1408046331&amp;origins=37.407585,-122.145287&amp;destinations=37.482890,-122.150235" rel="nofollow noreferrer">https://maps.googleapis.com/maps/api/distancematrix/xml?units=imperial&amp;departure_time=1408046331&amp;origins=37.407585,-122.145287&amp;destinations=37.482890,-122.150235</a></p>
  
  <p>15 minutes is always returned.</p>
  
  <p>Using "maps dot google dot com" a travel time of 19 mins is returned when traffic is taken into account.</p>
  
  <p>If anyone can help me get the travel time with traffic from the Distance Matrix API, that would be greatly appreciated.</p>