MPRouteLeg class

A leg of a MPRoute is defined as all steps between any context shifts (entering/exiting buildings, changing floors) A leg is comprised of a list of steps as well as a startLocation and an endLocation

Inheritance

Properties

distance MPRouteProperty?
The distance of the leg
final
duration MPRouteProperty?
The expected time it takes to traverse
final
endAddress String?
The end address of the leg
final
endLocation MPRouteCoordinate?
The end coordinate of the lg
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAddress String?
The start address of the leg
final
startLocation MPRouteCoordinate?
The start coordinate of the leg
final
steps List<MPRouteStep>?
The steps the leg consists of
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the MPRouteLeg to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(dynamic json) MPRouteLeg?
Attempts to build a MPRouteLeg from a JSON object, this method will decode the object if needed