RoutePathSegment

class RoutePathSegment(engineSegment: RoutePathSegment, metadataRepository: MetadataRepository)

Represents a segment of a full route path between instructions, along a single floor/building.

Wraps native EngineRoutePathSegment and provides utilities to read geometry, instructions, and metadata.

Constructors

Link copied to clipboard
constructor(engineSegment: RoutePathSegment, metadataRepository: MetadataRepository)

Properties

Link copied to clipboard

The building ID this segment occurs within.

Link copied to clipboard

The total distance and estimated time of this segment, converted to Kotlin DistanceTime.

Link copied to clipboard

The floor ID this segment is on.

Link copied to clipboard

The localized short name (e.g., "L1", "B2") of the floor.

Link copied to clipboard

The list of step-by-step route instructions in this segment.

Link copied to clipboard
val points: List<Mercator>

The ordered geometry points of the route segment.

Link copied to clipboard

The property ID this segment belongs to.

Link copied to clipboard
val segmentType: RouteSegmentType

The type of segment, e.g. within building vs property.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int