{{ gpsInfo?.gpsHeading }}
@if (currentLocation?.location) {
{{ currentLocation?.location }}
}
@if (!currentStop) {
}
@for (
stop of gpsStopsWithoutCurrentLocation;
let stopIndex = $index;
track stopIndex
) {
@let stopNumberColorClass =
stop.type === 'pickup'
? 'text-color-green-4'
: stop.type === 'delivery'
? 'text-color-orange-3'
: 'text-color-muted';
{{ stop.stopNumber }}
@let textColorClass =
stop.isAtStop ||
currentPosition <
stop.position
? 'text-color-white'
: 'text-color-muted';
} @else if (
currentPosition >=
stop.position
) {
}
@if (!stop.isAtStop) {
@if (stop.date) {
{{ stop?.location }}
@if (
stop.isAtStop &&
gpsLocationIcon
) {
=
stop.position &&
!stop.isAtStop,
}"
>
{{
stop.date
| date
: eDateTimeFormats.MM_DD_YY
}}
}
@if (stop.time) {
=
stop.position &&
!stop.isAtStop,
}"
>
{{
stop.time
| date
: eDateTimeFormats.HH_MM_AA
}}
}
} @else {
{{ dispatchStatus }}
@if (stop.currentWaitTime) {
{{
stop.currentWaitTime
| convertMinutesToHours
}}
}
}
=
stop.position &&
!stop.isAtStop,
'ca-font-bold': stopIndex === 0,
}"
>
{{
stopIndex === 0
? 'LEG mi'
: stop?.legMiles
? '+' + stop.legMiles
: '+' + 0
}}
{{ staticConstant.completed }}
{{ staticConstant.total }}
{{ currentPosition }}{{ staticConstant.percentage }}
{{
totalMiles
| number
: eThousandSeparatorFormat.DECIMAL_FORMAT
}}
{{ staticConstant.miles }}