com.sygic.sdk.route.RoadElement Class Reference
Inheritance diagram for com.sygic.sdk.route.RoadElement:
Collaboration diagram for com.sygic.sdk.route.RoadElement:

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)
 
- Public Member Functions inherited from com.sygic.sdk.BaseNativeParcelable
boolean isValidParcelable ()
 

Static Public Attributes

static final Parcelable.Creator< RoadElementCREATOR
 

Protected Member Functions

 RoadElement (final Parcel in)
 

Additional Inherited Members

- Protected Attributes inherited from com.sygic.sdk.BaseNativeParcelable
boolean mIsValidParcelable = true
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RoadElement()

com.sygic.sdk.route.RoadElement.RoadElement ( final Parcel  in)
protected

Member Function Documentation

◆ describeContents()

int com.sygic.sdk.route.RoadElement.describeContents ( )

For documentation, see android.os.Parcelable.describeContents().

◆ equals()

boolean com.sygic.sdk.route.RoadElement.equals ( final Object  o)

◆ getAttributes()

Set<Integer> com.sygic.sdk.route.RoadElement.getAttributes ( )

Returns set of attributes of the selected road.

◆ getDistance()

int com.sygic.sdk.route.RoadElement.getDistance ( )

Returns the distance from start of route in meters.

◆ getDuration()

int com.sygic.sdk.route.RoadElement.getDuration ( )

Returns he duration of RoadElement in seconds based on average speed. of the element.

◆ getFrom()

GeoCoordinates com.sygic.sdk.route.RoadElement.getFrom ( )

Returns from GeoCoordinates

Returns
GeoCoordinates

◆ getIso()

String com.sygic.sdk.route.RoadElement.getIso ( )

Returns the country iso code in ISO 3166-2 format.

◆ getLength()

int com.sygic.sdk.route.RoadElement.getLength ( )

Returns the length of RoadElement in meters.

◆ getRoadName()

String com.sygic.sdk.route.RoadElement.getRoadName ( )

Returns the name of the road element, or an empty string if the data is not available.

◆ getRoadNumbers()

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

◆ getSpeedLimit()

int com.sygic.sdk.route.RoadElement.getSpeedLimit ( )

Returns the speed limit of RoadElement in kmh, or 0 if the information is not available.

◆ getTo()

GeoCoordinates com.sygic.sdk.route.RoadElement.getTo ( )

Returns to GeoCoordinates

Returns
GeoCoordinates

◆ getType()

int com.sygic.sdk.route.RoadElement.getType ( )

Returns the road Type.

◆ getUniqueId()

String com.sygic.sdk.route.RoadElement.getUniqueId ( )

Returns the unique identifier of RoadElement.

◆ hashCode()

int com.sygic.sdk.route.RoadElement.hashCode ( )

◆ isTemporaryClosed()

boolean com.sygic.sdk.route.RoadElement.isTemporaryClosed ( )

Indicates whether the RoadElement will be temporary closed when we reach it

Returns
true if RoadElement is closed, false otherwise

◆ writeToParcel()

void com.sygic.sdk.route.RoadElement.writeToParcel ( final Parcel  dest,
final int  flags 
)

For documentation, see android.os.Parcelable.writeToParcel().

Member Data Documentation

◆ CREATOR

final Parcelable.Creator<RoadElement> com.sygic.sdk.route.RoadElement.CREATOR
static
Initial value:
= new Parcelable.Creator<RoadElement>() {
@Override
public RoadElement createFromParcel(final Parcel source) {
return new RoadElement(source);
}
@Override
public RoadElement[] newArray(final int size) {
return new RoadElement[size];
}
}

The documentation for this class was generated from the following file: