Interface DrivingRoute
- Summary
- Methods
- getRouteId
- getMetadata
- getSections
- getGeometry
- getJamSegments
- getEvents
- getSpeedLimits
- getVehicleOptions
- getLaneSigns
- getDirectionSigns
- getRestrictedEntries
- getTrafficLights
- getRestrictedTurns
- getRailwayCrossings
- getPedestrianCrossings
- getSpeedBumps
- getCheckpoints
- getRuggedRoads
- getTollRoads
- getFordCrossings
- getFerries
- getHighways
- getTunnels
- getZoneCrossings
- getRoadVehicleRestrictions
- getManoeuvreVehicleRestrictions
- getAnnotationLanguage
- getRequestPoints
- getPosition
- setPosition
- getRoutePosition
- getLegIndex
- setLegIndex
- isAreConditionsOutdated
- addConditionsListener
- removeConditionsListener
- sectionIndex
- metadataAt
- getWayPoints
- requestConditionsUpdate
Warning
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.directions.driving
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.
Summary
Methods
|
Type and modifiers |
Method and Description |
|
java.lang.String |
getRouteId() |
|
getMetadata() |
|
|
java.util.List<DrivingSection> |
getSections() |
|
getGeometry() |
|
|
java.util.List<JamSegment> |
getJamSegments() |
|
java.util.List<Event> |
getEvents() |
|
java.util.List<java.lang.Float> |
getSpeedLimits() |
|
getVehicleOptions() |
|
|
java.util.List<LaneSign> |
getLaneSigns() |
|
java.util.List<DirectionSign> |
getDirectionSigns() |
|
java.util.List<RestrictedEntry> |
getRestrictedEntries() |
|
java.util.List<TrafficLight> |
getTrafficLights() |
|
java.util.List<RestrictedTurn> |
getRestrictedTurns() |
|
java.util.List<RailwayCrossing> |
getRailwayCrossings() |
|
java.util.List<PedestrianCrossing> |
getPedestrianCrossings() |
|
java.util.List<SpeedBump> |
getSpeedBumps() |
|
java.util.List<Checkpoint> |
getCheckpoints() |
|
java.util.List<RuggedRoad> |
getRuggedRoads() |
|
java.util.List<TollRoad> |
|
|
java.util.List<FordCrossing> |
|
|
java.util.List<Ferry> |
|
|
java.util.List<Highway> |
|
|
java.util.List<Tunnel> |
|
|
java.util.List<ZoneCrossing> |
|
|
java.util.List<RoadVehicleRestriction> |
getRoadVehicleRestrictions() |
|
java.util.List<ManoeuvreVehicleRestriction> |
|
|
getAnnotationLanguage() |
|
|
java.util.List<RequestPoint> |
getRequestPoints() |
|
getPosition() |
|
|
void |
setPosition(@NonNull PolylinePosition position) |
|
getRoutePosition() |
|
|
int |
getLegIndex() |
|
void |
setLegIndex(int legIndex) |
|
boolean |
isAreConditionsOutdated() |
|
void |
addConditionsListener(@NonNull java.lang.ref.WeakReference<ConditionsListener> conditionsListener) |
|
void |
removeConditionsListener(@NonNull java.lang.ref.WeakReference<ConditionsListener> conditionsListener) |
|
int |
sectionIndex(int segmentIndex) |
|
metadataAt(@NonNull PolylinePosition position) |
|
|
java.util.List<PolylinePosition> |
getWayPoints() |
|
void |
Methods
getRouteId
|
@NonNull |
The ID of the route.
getMetadata
|
@NonNull |
The route metadata.
getSections
|
@NonNull |
Manoeuvre-to-Manoeuvre route sections.
getGeometry
|
@NonNull |
Route geometry.
getJamSegments
|
@NonNull |
Traffic conditions on the given route.
getEvents
|
@NonNull |
Events on the given route.
getSpeedLimits
|
@NonNull |
Speed limits for segments in the geometry.
getVehicleOptions
|
@NonNull |
Vehicle options.
getLaneSigns
|
@NonNull |
Lane signs.
getDirectionSigns
|
@NonNull |
Direction signs.
getRestrictedEntries
|
@NonNull |
Route restricted entries.
getTrafficLights
|
@NonNull |
Route traffic lights.
getRestrictedTurns
|
@NonNull |
Route points with time-dependent restrictions.
getRailwayCrossings
|
@NonNull |
Railway crossings
getPedestrianCrossings
|
@NonNull |
Pedestrian crossings
getSpeedBumps
|
@NonNull |
Speed bumps
getCheckpoints
|
@NonNull |
Checkpoints
getRuggedRoads
|
@NonNull |
Route roads.
getTollRoads
|
@NonNull |
getFordCrossings
|
@NonNull |
getFerries
|
@NonNull |
getHighways
|
@NonNull |
getTunnels
|
@NonNull |
getZoneCrossings
|
@NonNull |
getRoadVehicleRestrictions
|
@NonNull |
Route vehicle restrictions.
getManoeuvreVehicleRestrictions
|
@NonNull |
getAnnotationLanguage
|
@Nullable |
Language of string annotations (for example street names) in this route object.
Optional property, can be null.
getRequestPoints
|
@Nullable |
Request points that were specified in the router request that this route originated from.
Optional property, can be null.
getPosition
|
@NonNull |
The reached position on the given route.
The 'RouteMetadata::weight' field contains data for the part of the route beyond this position.
setPosition
|
void setPosition(@NonNull PolylinePosition position) |
getRoutePosition
|
@NonNull |
The reached position on the given route.
The 'RouteMetadata::weight' field contains data for the part of the route beyond this position.
getLegIndex
|
int getLegIndex() |
A leg is a section of the route between two consecutive waypoints.
setLegIndex
|
void setLegIndex(int legIndex) |
isAreConditionsOutdated
|
boolean isAreConditionsOutdated() |
Indicates whether driving conditions (jamSegments and events) have become outdated when we are not able to fetch updates for some predefined time.
addConditionsListener
|
void addConditionsListener(@NonNull java.lang.ref.WeakReference<ConditionsListener> conditionsListener) |
Adds a listener for route condition changes.
The class does not retain the object in the 'conditionsListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
removeConditionsListener
|
void removeConditionsListener(@NonNull java.lang.ref.WeakReference<ConditionsListener> conditionsListener) |
Removes the listener for route condition changes.
The class does not retain the object in the 'conditionsListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
sectionIndex
|
int sectionIndex(int segmentIndex) |
Section index.
metadataAt
|
@NonNull |
Metadata location.
getWayPoints
|
@NonNull |
Polyline positions of waypoints including start and finish point.
requestConditionsUpdate
|
void requestConditionsUpdate() |