Currently distance and duration is not parsed and translated correctly. For example the distance distanceValue and durationValue are not correct and cannot be used as such. They do not include the distance and duration from all the legs.
I have introduced these values for the PolylineResult that is reflected in the legs;
List<String>? distanceTexts; // All the distance texts
List<int>? distanceValues; // All the distance values
int? totalDistanceValue; // The total distance value
List<String>? durationTexts; // All the duration texts
List<int>? durationValues; // All the duration values
int? totalDurationValue; // The total duration value
I have taken the liberty to not include tests as we basically use reduce to infer values directly from Google.
Currently distance and duration is not parsed and translated correctly. For example the distance
distanceValue
anddurationValue
are not correct and cannot be used as such. They do not include the distance and duration from all thelegs
.I have introduced these values for the
PolylineResult
that is reflected in thelegs
;I have taken the liberty to not include tests as we basically use
reduce
to infer values directly from Google.