OTRoute class Routes & Navigation

Over track route

Constructors

OTRoute.init(int id, int mapId)

Properties

dominantRoads List<String>
Get dominant road names
no setterinherited
geographicArea RectangleGeographicArea
Get geographic area of the route. The geographic area is the smallest rectangle that can be drawn around the route.
no setterinherited
hasFerryConnections bool
Check if the route contains ferry connections.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasTollRoads bool
Check if the route contains toll roads.
no setterinherited
incursCosts bool
Method to check if traveling the route or route segment incurs cost to the user.
no setterinherited
mapId int
no setterinherited
pointerId → dynamic
no setterinherited
polygonGeographicArea PolygonGeographicArea
Get polygon area of the route.
no setterinherited
preferences RoutePreferences
Get the route preferences.
no setterinherited
routeListener RouteListener?
Get route related events listener.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<RouteSegment>
Get route segments.
no setterinherited
status RouteStatus
Get route status.
no setterinherited
summary String
Get the summary of the route.
no setterinherited
terrainProfile RouteTerrainProfile?
Get route terrain profile.
no setterinherited
tilesGeographicArea TilesCollectionGeographicArea
Get tiles collection area of the route.
no setterinherited
track Path
Get name
no setter
trafficEvents List<RouteTrafficEvent>
Get list of traffic events affecting the route.
no setterinherited

Methods

clearRouteListener() → void
Clear the route listener, removing any previously set listener for route-related events.
inherited
exportAs(PathFileFormat format) String
Export route data in the requested data format.
inherited
getClosestSegment(Coordinates coord) int
Get index of the closest route segment to the given coordinates.
inherited
getCoordinateOnRoute(int distance) Coordinates
Get a coordinate on route at the given distance from the departure / starting point.
inherited
getDistanceOnRoute(Coordinates coords, bool activePart) int
Get route distance from departure at the given coordinate.
inherited
getPath(int start, int end) Path?
Build path from route start - end segment.
inherited
getTimeDistance({bool activePart = true}) TimeDistance
Get length in meters and estimated travel time in seconds for the route / route segment.
inherited
getTimeDistanceCoordinateOnRoute(Coordinates coordinates) TimeDistanceCoordinate
Get a time-distance coordinate on route closest to the given reference coordinate.
inherited
getTimeDistanceCoordinates({required int start, required int end, required int step, required StepType stepType}) List<TimeDistanceCoordinate>
Build a list of timestamp coordinates from a route.
inherited
getWaypoints({GetWaypointsOptions options = GetWaypointsOptions.remainingInitial}) List<Landmark>
Get list of route waypoints.
inherited
getWaypointsVia(Landmark landmark) List<Landmark>
Get a new waypoints configuration using the given intermediate via waypoint.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited