目录

Milestone

Class Info

public class Milestone

里程碑对象,路线的里程碑信息列表存储在路线规划结果的实体类MapNaviPath中,通过调用getMilestoneList()获取。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getDistance()

获取当前里程碑距离起点的距离。

UnitEnum

getUnit()

获取距离单位。

NaviLatLng

getCoordinate()

获取里程碑的坐标位置。

Public Methods

[h2]getDistance

Method

public int getDistance();

获取当前里程碑距离起点的距离。

Returns

Type

Description

int

里程碑距离起点的距离值。

[h2]getUnit

Method

public UnitEnum getUnit();

获取距离值的单位。

Returns

Type

Description

UnitEnum

距离单位的枚举值,详见UnitEnum。

[h2]getCoordinate

Method

public NaviLatLng getCoordinate();

获取里程碑的经纬度坐标。

Returns

Type

Description

NaviLatLng

经纬度坐标的实体类,详见NaviLatLng。