public final class Crossroad extends Road implements android.os.Parcelable
| 构造器和说明 |
|---|
Crossroad()
Crossroad的构造函数
The constructor of Crossroad. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
java.lang.String |
getDirection()
返回交叉路口相对逆地理坐标点的方向
Returns the direction of the intersection relative to the reverse geocoded point. |
float |
getDistance()
返回逆地理坐标点与交叉路口的垂直距离,单位米
Returns the vertical distance between the reverse geocoded point and the intersection, in meters. |
java.lang.String |
getFirstRoadId()
返回交叉路口的第一条道路ID
Returns the ID of the first road at the intersection. |
java.lang.String |
getFirstRoadName()
返回交叉路口的第一条道路名称
Returns the name of the first road at the intersection. |
java.lang.String |
getSecondRoadId()
返回交叉路口的第二条道路ID
Returns the ID of the second road at the intersection. |
java.lang.String |
getSecondRoadName()
返回交叉路口的第二条道路名称
Returns the name of the second road at the intersection. |
void |
setDirection(java.lang.String direction)
设置交叉路口相对逆地理坐标点的方向
Sets the direction of the intersection relative to the reverse geocoded point. |
void |
setDistance(float distance)
设置逆地理坐标点与交叉路口的垂直距离,单位米
Sets the vertical distance between the reverse geocoded point and the intersection, in meters. |
void |
setFirstRoadId(java.lang.String firstRoadId)
设置交叉路口的第一条道路ID
Sets the ID of the first road at the intersection. |
void |
setFirstRoadName(java.lang.String firstRoadName)
设置交叉路口的第一条道路名称
Sets the name of the first road at the intersection. |
void |
setSecondRoadId(java.lang.String secondRoadId)
设置交叉路口的第二条道路ID
Sets the ID of the second road at the intersection. |
void |
setSecondRoadName(java.lang.String secondRoadName)
设置交叉路口的第二条道路名称
Sets the name of the second road at the intersection. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getCenterPoint, getCityCode, getId, getName, getRoadWidth, getType, setCenterPoint, setCityCode, setId, setName, setRoadWidth, setTypepublic static final android.os.Parcelable.Creator<Crossroad> CREATOR
public float getDistance()
public void setDistance(float distance)
distance - 逆地理坐标点与交叉路口的垂直距离。
public java.lang.String getDirection()
public void setDirection(java.lang.String direction)
direction - 交叉路口相对逆地理坐标点的方向。
public java.lang.String getFirstRoadId()
public void setFirstRoadId(java.lang.String firstRoadId)
firstRoadId - 交叉路口的第一条道路ID。
public java.lang.String getFirstRoadName()
public void setFirstRoadName(java.lang.String firstRoadName)
firstRoadName - 返回交叉路口的第一条道路名称。
public java.lang.String getSecondRoadId()
public void setSecondRoadId(java.lang.String secondRoadId)
secondRoadId - 交叉路口的第二条道路ID。
public java.lang.String getSecondRoadName()
public void setSecondRoadName(java.lang.String secondRoadName)
secondRoadName - 返回交叉路口的第二条道路名称。
public int describeContents()
describeContents 在接口中 android.os.ParcelabledescribeContents 在类中 Roadpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.ParcelablewriteToParcel 在类中 Road