Classes | |
interface | Attribute |
interface | Type |
Public Member Functions | |
Set< Integer > | getAttributes () |
int | getType () |
String | getUniqueId () |
String | getRoadName () |
List< String > | getRoadNumbers () |
String | getIso () |
int | getSpeedLimit () |
int | getDistance () |
int | getDuration () |
int | getLength () |
boolean | isTemporaryClosed () |
GeoCoordinates | getFrom () |
GeoCoordinates | getTo () |
boolean | equals (final Object o) |
int | hashCode () |
int | describeContents () |
void | writeToParcel (final Parcel dest, final int flags) |
![]() | |
boolean | isValidParcelable () |
Static Public Attributes | |
static final Parcelable.Creator< RoadElement > | CREATOR |
Protected Member Functions | |
RoadElement (final Parcel in) | |
Additional Inherited Members | |
![]() | |
boolean | mIsValidParcelable = true |
Road element attribute classifications. Describes the nature of the road that a RoadElement is part of. A road element may only have one type, or none if the road is an unclassified type or the information is not available.
|
protected |
int com.sygic.sdk.route.RoadElement.describeContents | ( | ) |
For documentation, see android.os.Parcelable.describeContents().
boolean com.sygic.sdk.route.RoadElement.equals | ( | final Object | o | ) |
Set<Integer> com.sygic.sdk.route.RoadElement.getAttributes | ( | ) |
Returns set of attributes of the selected road.
int com.sygic.sdk.route.RoadElement.getDistance | ( | ) |
Returns the distance from start of route in meters.
int com.sygic.sdk.route.RoadElement.getDuration | ( | ) |
Returns he duration of RoadElement in seconds based on average speed. of the element.
GeoCoordinates com.sygic.sdk.route.RoadElement.getFrom | ( | ) |
Returns from GeoCoordinates
String com.sygic.sdk.route.RoadElement.getIso | ( | ) |
Returns the country iso code in ISO 3166-2 format.
int com.sygic.sdk.route.RoadElement.getLength | ( | ) |
Returns the length of RoadElement in meters.
String com.sygic.sdk.route.RoadElement.getRoadName | ( | ) |
Returns the name of the road element, or an empty string if the data is not available.
List<String> com.sygic.sdk.route.RoadElement.getRoadNumbers | ( | ) |
Returns the numbers of the road element, or an empty list if the data is not available. Numbers are sorted from most common
int com.sygic.sdk.route.RoadElement.getSpeedLimit | ( | ) |
Returns the speed limit of RoadElement in kmh, or 0 if the information is not available.
GeoCoordinates com.sygic.sdk.route.RoadElement.getTo | ( | ) |
Returns to GeoCoordinates
int com.sygic.sdk.route.RoadElement.getType | ( | ) |
Returns the road Type.
String com.sygic.sdk.route.RoadElement.getUniqueId | ( | ) |
Returns the unique identifier of RoadElement.
int com.sygic.sdk.route.RoadElement.hashCode | ( | ) |
boolean com.sygic.sdk.route.RoadElement.isTemporaryClosed | ( | ) |
Indicates whether the RoadElement will be temporary closed when we reach it
true
if RoadElement is closed, false
otherwise void com.sygic.sdk.route.RoadElement.writeToParcel | ( | final Parcel | dest, |
final int | flags | ||
) |
For documentation, see android.os.Parcelable.writeToParcel().
|
static |