You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distances shown in CarPlay’s maneuver panel aren’t rounded as they are inside NavigationViewController.
RoundingTable.threshold(for:) is getting called, and DistanceFormatter.measurement(of:) even sets NumberFormatter.roundingIncrement before calling Threshold.measurement(for:), but Threshold.measurement(for:) doesn’t use the number formatter and doesn’t perform any rounding when creating the Measurement:
Distances shown in CarPlay’s maneuver panel aren’t rounded as they are inside NavigationViewController.
RoundingTable.threshold(for:)
is getting called, andDistanceFormatter.measurement(of:)
even setsNumberFormatter.roundingIncrement
before callingThreshold.measurement(for:)
, butThreshold.measurement(for:)
doesn’t use the number formatter and doesn’t perform any rounding when creating the Measurement:mapbox-navigation-ios/MapboxCoreNavigation/DistanceFormatter.swift
Line 217 in 3abfaae
mapbox-navigation-ios/MapboxCoreNavigation/DistanceFormatter.swift
Line 85 in 3abfaae
Threshold.roundingIncrement
can be readily plugged into theDouble.rounded(to:)
method shown in mapbox/mapbox-directions-swift#311 (comment)./ref #1853
/cc @mapbox/navigation-ios
The text was updated successfully, but these errors were encountered: