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
getter/setter pair
duration MPRouteProperty?
The expected time it takes to traverse
getter/setter pair
endAddress String?
The end address of the leg
getter/setter pair
endLocation MPRouteCoordinate?
The end coordinate of the lg
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAdress String?
The start address of the leg
getter/setter pair
startLocation MPRouteCoordinate?
The start coordinate of the leg
getter/setter pair
steps List<MPRouteStep>?
The steps the leg consists of
getter/setter pair

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