forked from organicmaps/organicmaps
[ios] fix: estimates when the following type is changing
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
parent
bfc8859145
commit
eb61c276d0
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@ NSArray<MWMRouterTransitStepInfo *> *buildRouteTransitSteps(NSArray<MWMRoutePoin
|
|||
|
||||
- (void)updateTransitInfo:(TransitRouteInfo const &)info {
|
||||
if (auto entity = self.entity) {
|
||||
entity.timeToTarget = info.m_totalTimeInSec;
|
||||
entity.targetDistance = @(info.m_totalPedestrianDistanceStr.c_str());
|
||||
entity.targetUnits = @(info.m_totalPedestrianUnitsSuffix.c_str());
|
||||
entity.isValid = YES;
|
||||
entity.isWalk = YES;
|
||||
entity.showEta = YES;
|
||||
|
|
Loading…
Add table
Reference in a new issue