{"action":"created","issue":{"url":"https://api.github.com/repos/googlemaps/google-maps-services-java/issues/121","repository_url":"https://api.github.com/repos/googlemaps/google-maps-services-java","labels_url":"https://api.github.com/repos/googlemaps/google-maps-services-java/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/googlemaps/google-maps-services-java/issues/121/comments","events_url":"https://api.github.com/repos/googlemaps/google-maps-services-java/issues/121/events","html_url":"https://github.com/googlemaps/google-maps-services-java/issues/121","id":125347250,"number":121,"title":"Setting duration in traffic to false in DistanceMatrixApi request.","user":{"login":"anirban-metal","id":5233706,"avatar_url":"https://avatars.githubusercontent.com/u/5233706?v=3","gravatar_id":"","url":"https://api.github.com/users/anirban-metal","html_url":"https://github.com/anirban-metal","followers_url":"https://api.github.com/users/anirban-metal/followers","following_url":"https://api.github.com/users/anirban-metal/following{/other_user}","gists_url":"https://api.github.com/users/anirban-metal/gists{/gist_id}","starred_url":"https://api.github.com/users/anirban-metal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirban-metal/subscriptions","organizations_url":"https://api.github.com/users/anirban-metal/orgs","repos_url":"https://api.github.com/users/anirban-metal/repos","events_url":"https://api.github.com/users/anirban-metal/events{/privacy}","received_events_url":"https://api.github.com/users/anirban-metal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-07T08:23:13Z","updated_at":"2016-02-25T10:55:42Z","closed_at":null,"body":"For now, I think it's only possible to get duration in traffic. Would be very convenient if that could be turned off."},"comment":{"url":"https://api.github.com/repos/googlemaps/google-maps-services-java/issues/comments/188725285","html_url":"https://github.com/googlemaps/google-maps-services-java/issues/121#issuecomment-188725285","issue_url":"https://api.github.com/repos/googlemaps/google-maps-services-java/issues/121","id":188725285,"user":{"login":"anirban-metal","id":5233706,"avatar_url":"https://avatars.githubusercontent.com/u/5233706?v=3","gravatar_id":"","url":"https://api.github.com/users/anirban-metal","html_url":"https://github.com/anirban-metal","followers_url":"https://api.github.com/users/anirban-metal/followers","following_url":"https://api.github.com/users/anirban-metal/following{/other_user}","gists_url":"https://api.github.com/users/anirban-metal/gists{/gist_id}","starred_url":"https://api.github.com/users/anirban-metal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirban-metal/subscriptions","organizations_url":"https://api.github.com/users/anirban-metal/orgs","repos_url":"https://api.github.com/users/anirban-metal/repos","events_url":"https://api.github.com/users/anirban-metal/events{/privacy}","received_events_url":"https://api.github.com/users/anirban-metal/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T10:55:42Z","updated_at":"2016-02-25T10:55:42Z","body":"Thank you for your response. I apologise for not having phrased the feature request correctly. I shall do the same correctly now.\r\nIn google distance matrix api, if one sets the arrival time/departure time of the vehicle (car/bus/transit etc), the json response contains the fields \"duration\" and \"duration_in_traffic\". Presently, if we set the vehicle arrival/departure time in the java api, we can only get the \"duration\" from DistanceMatrixElement. I think another instance variable of \"durationInTraffic\" should be present in the DistanceMatrixElement class, which should have some illegal value in case if the arrival/departure time is not set for the vehicle, and the value returned by the google distance matrix API if the arrival/departure time is set. There happens to be a \"durationInTraffic\" instance variable in the DirectionsLeg class of the API."}}