OsrmRouteStep class

OsrmRouteStep class for a route step

Inheritance

Constructors

OsrmRouteStep({num? distance, num? duration, num? weight, String? name, String? mode, OsrmGeometry? geometry, OsrmStepManeuver? maneuver, List<OsrmIntersection>? intersections, OsrmVoiceInstructions? voiceInstructions, OsrmBannerInstructions? bannerInstructions})
OsrmRouteStep.fromMap(Map<String, dynamic> json)
fromMap method to get the OsrmRouteStep from a json map
factory

Properties

bannerInstructions OsrmBannerInstructions?
bannerInstructions A string with the name of the rotary.
final
distance num?
distance The distance traveled by the route step, in float meters.
final
duration num?
duration The estimated travel time, in float number of seconds.
final
geometry OsrmGeometry?
geometry Depending on the geometries parameter this is a GeoJSON LineString or Polyline string representation of the route step.
final
hashCode int
The hash code for this object.
no setterinherited
intersections List<OsrmIntersection>?
intersections An array of Intersection objects that are passed along the segment, the very first belonging to the StepManeuver.
final
maneuver OsrmStepManeuver?
maneuver A StepManeuver object representing the maneuver.
final
mode String?
mode The mode of transportation.
final
name String?
name The name of the way along which travel proceeds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
voiceInstructions OsrmVoiceInstructions?
voiceInstructions A string with the name of the rotary.
final
weight num?
weight The calculated weight of the route step.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toMap method to get the OsrmRouteStep as a json map
override
toString() String
A string representation of this object.
inherited

Operators

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