public static class TransitRouteLine.TransitStep extends RouteStep
Modifier and Type | Class and Description |
---|---|
static class |
TransitRouteLine.TransitStep.TransitRouteStepType
路段类型枚举
|
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
mWayPoints
Modifier | Constructor and Description |
---|---|
|
TransitStep() |
protected |
TransitStep(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
RouteNode |
getEntrance()
路段入口信息
|
RouteNode |
getExit()
路段出口信息
|
java.lang.String |
getInstructions()
获取该路段换乘说明
|
TransitRouteLine.TransitStep.TransitRouteStepType |
getStepType()
获取路段类型
|
VehicleInfo |
getVehicleInfo()
当路段为公交路段或地铁路段时,可以获取交通工具信息
|
java.util.List<LatLng> |
getWayPoints()
返回路段所经过的地理坐标集合
|
void |
setEntrace(RouteNode entrance) |
void |
setExit(RouteNode exit) |
void |
setInstructions(java.lang.String instructions) |
void |
setPathString(java.lang.String pathString) |
void |
setStepType(TransitRouteLine.TransitStep.TransitRouteStepType stepType) |
void |
setVehicleInfo(VehicleInfo vehicleInfo) |
void |
writeToParcel(Parcel dest,
int flags) |
getDistance, getDuration, getName, setDistance, setDuration, setName, setWayPoints
public java.lang.String getInstructions()
public void setVehicleInfo(VehicleInfo vehicleInfo)
public void setInstructions(java.lang.String instructions)
public TransitRouteLine.TransitStep.TransitRouteStepType getStepType()
TransitRouteLine.TransitStep.TransitRouteStepType
public void setStepType(TransitRouteLine.TransitStep.TransitRouteStepType stepType)
public void setPathString(java.lang.String pathString)
public java.util.List<LatLng> getWayPoints()
RouteStep
getWayPoints
in class RouteStep
public RouteNode getEntrance()
public void setEntrace(RouteNode entrance)
public RouteNode getExit()
public void setExit(RouteNode exit)
public VehicleInfo getVehicleInfo()
public int describeContents()
describeContents
in class RouteStep
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class RouteStep