目录

Milestone

Class Info

public class Milestone

Milestone object. Route milestone information is stored in the route planning result class MapNaviPath. You can call the getMilestoneList() method to obtain the milestone information.

Public Method Summary

Qualifier and Type

Method Name and Description

int

getDistance()

Obtains the distance from the current milestone to the start point.

UnitEnum

getUnit()

Obtains the distance unit.

NaviLatLng

getCoordinate()

Obtains the coordinates of the milestone.

Public Methods

[h2]getDistance

Method

public int getDistance();

Obtains the distance from the current milestone to the start point.

Returns

Type

Description

int

Distance from the current milestone to the start point.

[h2]getUnit

Method

public UnitEnum getUnit();

Obtains the distance unit.

Returns

Type

Description

UnitEnum

Distance unit. For details, please refer to UnitEnum.

[h2]getCoordinate

Method

public NaviLatLng getCoordinate();

Obtains the coordinates of the milestone.

Returns

Type

Description

NaviLatLng

Coordinates of the milestone. For details, please refer to NaviLatLng.