Interface DrivingRoute
com.yandex.mapkit.driving
public interface DrivingRoute
Driving route.
A route consists of multiple sections. Each section has a corresponding annotation that describes the action at the beginning of the section.
Methods
void | addConditionsListener( ConditionsListener conditionsListener) | |
AnnotationLanguage | getAnnotationLanguage() | Language of string annotations (e.g. |
List< AnnotationSchemeID > | getAnnotationSchemes() | Annotation schemes for segments in the geometry. |
List< Event > | getEvents() | Events on the given route. |
Polyline | getGeometry() | |
List< JamSegment > | getJamSegments() | Traffic conditions on the given route. |
List< LaneSign > | getLaneSigns() | |
DrivingRouteMetadata | getMetadata() | |
PolylinePosition | getPosition() | The reached position on the given route. |
List< RequestPoint > | getRequestPoints() | Request points that were specified in the router request that this route originated from. |
String | getRouteId() | |
List< DrivingSection > | getSections() | |
List< Float > | getSpeedLimits() | Speed limits for segments in the geometry. |
List< Spot > | getSpots() | |
VehicleType | getVehicleType() | Vehicle type (e.g. |
boolean | isAreConditionsOutdated() | Indicates whether driving conditions (jamSegments and events) have become outdated when we are not able to fetch updates for some predefined time. |
DrivingRouteMetadata | metadataAt( PolylinePosition position) | |
void | removeConditionsListener( ConditionsListener conditionsListener) | |
int | sectionIndex(int segmentIndex) | |
void | setPosition( PolylinePosition position) |
void | addConditionsListener( ConditionsListener conditionsListener) | |
AnnotationLanguage | getAnnotationLanguage() | Language of string annotations (e.g. |
List< AnnotationSchemeID > | getAnnotationSchemes() | Annotation schemes for segments in the geometry. |
List< Event > | getEvents() | Events on the given route. |
Polyline | getGeometry() | |
List< JamSegment > | getJamSegments() | Traffic conditions on the given route. |
List< LaneSign > | getLaneSigns() | |
DrivingRouteMetadata | getMetadata() | |
PolylinePosition | getPosition() | The reached position on the given route. |
List< RequestPoint > | getRequestPoints() | Request points that were specified in the router request that this route originated from. |
String | getRouteId() | |
List< DrivingSection > | getSections() | |
List< Float > | getSpeedLimits() | Speed limits for segments in the geometry. |
List< Spot > | getSpots() | |
VehicleType | getVehicleType() | Vehicle type (e.g. |
boolean | isAreConditionsOutdated() | Indicates whether driving conditions (jamSegments and events) have become outdated when we are not able to fetch updates for some predefined time. |
DrivingRouteMetadata | metadataAt( PolylinePosition position) | |
void | removeConditionsListener( ConditionsListener conditionsListener) | |
int | sectionIndex(int segmentIndex) | |
void | setPosition( PolylinePosition position) |
Method Detail
addConditionsListener
public void addConditionsListener (ConditionsListener conditionsListener)
getAnnotationLanguage
public AnnotationLanguage getAnnotationLanguage ()
Language of string annotations (e.g.
street names) in this route object.Optional property, can be null.getAnnotationSchemes
public List< AnnotationSchemeID > getAnnotationSchemes ()
Annotation schemes for segments in the geometry.
getEvents
public List< Event > getEvents ()
Events on the given route.
getGeometry
public Polyline getGeometry ()
getJamSegments
public List< JamSegment > getJamSegments ()
Traffic conditions on the given route.
getLaneSigns
public List< LaneSign > getLaneSigns ()
getMetadata
public DrivingRouteMetadata getMetadata ()
getPosition
public PolylinePosition getPosition ()
The reached position on the given route.
The 'RouteMetadata::weight' field contains data for the part of the route beyond this position.getRequestPoints
public List< RequestPoint > getRequestPoints ()
Request points that were specified in the router request that this route originated from.
Optional property, can be null.getRouteId
public String getRouteId ()
getSections
public List< DrivingSection > getSections ()
getSpeedLimits
public List< Float > getSpeedLimits ()
Speed limits for segments in the geometry.
getSpots
public List< Spot > getSpots ()
getVehicleType
public VehicleType getVehicleType ()
Vehicle type (e.g.
Taxi).isAreConditionsOutdated
public boolean isAreConditionsOutdated ()
Indicates whether driving conditions (jamSegments and events) have become outdated when we are not able to fetch updates for some predefined time.
metadataAt
public DrivingRouteMetadata metadataAt (PolylinePosition position)
removeConditionsListener
public void removeConditionsListener (ConditionsListener conditionsListener)
sectionIndex
public int sectionIndex (int segmentIndex)
setPosition
public void setPosition (PolylinePosition position)