distanceInMeters property

double distanceInMeters
getter/setter pair

Distance in meters to the location of the event for which the text notification is given.

Note: For greater distances, distance in kilometers is rounded to the nearest digit (0.5 or greater rounds up, else down) to simplify the distance phrase in ManeuverNotifications texts during navigation. Distance in miles is rounded to the nearest 0.5 step. For example, 3.5 kilometers are rounded to 4 kilometers and the notification will begin with After 4 kilometers.... However, 3.5 miles are not rounded up and the notification will begin with After three and a half miles.... Same for 3.7 miles, whereas 3.8 miles are rounded to 4 miles. Note that the measurement units itself are defined in the UnitSystem class.

Implementation

double distanceInMeters;