Private constructorPrivate Creates an instance of MPRouteLeg.
Optional steps: MPRouteStep[]The steps the leg consists of.
Optional distance: MPRoutePropertyThe distance of the leg.
Optional duration: MPRoutePropertyThe expected time it takes to traverse the leg.
Optional startAddress: stringThe address at the start of the leg.
Optional endAdress: stringThe address at the end of the leg.
Optional startLocation: MPRouteCoordinateThe start coordinate of the leg.
Optional endLocation: MPRouteCoordinateThe end coordinate of the leg.
Optional Readonly distanceThe distance of the leg.
Optional Readonly durationThe expected time it takes to traverse the leg.
Optional Readonly endThe address at the end of the leg.
Optional Readonly endThe end coordinate of the leg.
Optional Readonly startThe address at the start of the leg.
Optional Readonly startThe start coordinate of the leg.
Optional Readonly stepsThe steps the leg consists of.
Parses the object to a JSON object that is compatible with the MapsIndoors SDK.
Static createCreator for MPRouteLeg, used to decode JSON from the MapsIndoors SDK.
Generated using TypeDoc
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.
Export