MapRoute

open class MapRoute : MapObject<RouteData>

MapObject in the shape of a route that can be displayed on a map. In order to display the route object on the map, the route object needs to be added to an com.sygic.sdk.map.MapView by calling addMapObject

Types

RouteType
Link copied to clipboard
annotation class RouteType
Route types which can be displayed on map using MapRoute.

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
open fun equals(o: Any): Boolean
from
Link copied to clipboard
open fun from(@NonNull() route: Route): RouteData.Builder
Returns a builder able to create a route instanceBy default the route is constructed with Primary type
getData
Link copied to clipboard
open fun getData(): T
Get data associated with this viewObject.
getId
Link copied to clipboard
open fun getId(): Int
getMapObjectType
Link copied to clipboard
open fun getMapObjectType(): Int
Returns the type of map object
getObjectType
Link copied to clipboard
open fun getObjectType(): Int
Returns the type of view object.
getPosition
Link copied to clipboard
open fun getPosition(): GeoCoordinates
Returns the position of selected view object.
getZIndex
Link copied to clipboard
open fun getZIndex(): Int
hashCode
Link copied to clipboard
open fun hashCode(): Int
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
setId
Link copied to clipboard
open fun setId(id: Int)
For internal use only.
setZIndex
Link copied to clipboard
open fun setZIndex(ZIndex: Int)
toString
Link copied to clipboard
open fun toString(): String
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(dest: Parcel, flags: Int)
For documentation, see android.os.Parcelable.

Properties

CREATOR
Link copied to clipboard
val CREATOR: Parcelable.Creator<MapRoute>