I am currently using the Google Maps Javascript API, but this question also regards results from the Google Maps Platform.
My result element DirectionLeg obj
DirectionLeg