Route topic
Inspect and manage navigable routes for mapping and turn-by-turn navigation. This module provides route models, segment and instruction objects, terrain and elevation helpers, and persistent bookmarks so apps can calculate routes, present turn‑by‑turn guidance, analyze terrain, and store/recall saved routes for later use.
RouteBase: Abstract surface shared by concrete route implementations. Use this to access common route analysis helpers such as sampling coordinates, exporting route data, and querying geometry or metrics across route types.Route: Represents a computed navigable route produced by the routing engine. Use this class as the primary route model when presenting geometry, metrics and metadata to users; it aggregates segments, instructions, waypoints and traffic information needed for rendering and navigation.RouteSegment: A contiguous portion of a route between two waypoints. Segments contain geometry, time/distance metrics and an ordered list of instructions used for UI displays and analysis.RouteInstruction: A single maneuver or guidance step inside a segment. Instructions carry localized text, signpost and turn imagery, and time/distance metadata for building instruction lists and map centering.OTRoute: Over‑track route variant backed by a detailed track. Use this when you need precise path representation rather than only routes calculated based on waypoints.PTRoute: Public‑transport specific route representation exposing transit metadata like fares, frequency and ticket information.PTRouteSegment: Public‑transport segment type with transit-specific metadata such as platform, agency and schedule cues for presenting trip details.PTRouteInstruction: Instruction variant for public transport segments carrying platform and schedule details.RouteTerrainProfile: Terrain and elevation model for a route. Provides elevation samples, climb and steep sections, surface and road‑type sections to support elevation-aware rendering and measurements.TimeDistanceCoordinate: Timestamped coordinate with associated distance from an origin.RouteBookmarks: Persistent collection for saved routes (bookmarks). Use this to store, import, export and manage named route entries for reuse by users.RouteListener: Event listener for route-related runtime events. Attach to a route to receive asynchronous notifications about traffic updates and route diagnostics.SignpostDetails: Structured signpost rendering and semantic details returned by instructions; contains color hints, rendered imagery and a list of semantic signpost items.SignpostItem: A semantic element of a signpost such as text fragments, pictograms or shields; used by signpost rendering and accessibility features.
Route components form a clear workflow: compute routes with the routing service, inspect Route instances for segments and instructions, sample coordinates or terrain when needed, and attach listeners or persist favorites using the bookmarks API. Together these pieces provide the data and events required for map rendering, turn‑by‑turn navigation and transit-aware experiences.
Learn more about routes: https://developer.magiclane.com/docs/flutter/guides/core/routes
Classes
- ClimbSection Route
- Climb section describing an ascending segment of the route.
- OTRoute Route
- Over-track (OT) route representation.
- PTAlert Route
- Public transport alert.
- PTBuyTicketInformation Route
- Buy-ticket information for a public transport route.
- PTRoute Route
- Public transport route.
- PTRouteInstruction Route
- Public transport route instruction.
- PTRouteSegment Route
- Public transport route segment.
- PTTranslation Route
- Public transport translation.
- RoadTypeSection Route
- Road type section describing the classification of the road for a segment.
- Route Route
- A computed navigable route.
- RouteBase Route
- RouteBase defines the common API surface for computed routes. It exposes geometry, time/distance metrics, terrain profiles, segments, instructions, traffic and toll information, and helpers to export or sample route data.
- RouteBookmarks Route
- Manages a persistent collection of saved routes (bookmarks).
- RouteInstruction Route
- A single route step inside a route segment.
- RouteInstructionBase Route
- A single route instruction used for route guidance.
- RouteListener Route
- Listener for events related to a computed route.
- RouteSegment Route
- A single portion of a computed route between two consecutive waypoints.
- RouteSegmentBase Route
- A contiguous portion of a computed route between two waypoints.
- RouteTerrainProfile Route
- Terrain information for a calculated route.
- SignpostDetails Route
- Signpost rendering and semantic details.
- SignpostItem Route
- Element of a rendered signpost.
- SteepSection Route
- Steep section indicating an abrupt elevation change category.
- SurfaceSection Route
- Surface section describing surface type changes along the route.
- TimeDistanceCoordinate Route
- Timestamped geographic coordinate with associated relative distance.
Enums
- GetWaypointsOptions Route
- Options selecting which set of waypoints to return from RouteBase.getWaypoints.
- Grade Route
- Climb difficulty categories (UCI-based).
- RealtimeStatus Route
- Status of real-time information.
- RoadShieldType Route
- Road shield classification used for route-number items.
- RoadType Route
- Road classification for a route section.
- RouteBookmarksSortOrder Route
- Sort order options for RouteBookmarks.
- RouteStatus Route
- Routing service status values describing route computation state.
- SignpostConnectionInfo Route
- Signpost connection information.
- SignpostItemType Route
- Signpost item type.
- SignpostPictogramType Route
- Signpost pictogram type.
- StepType Route
- Unit used for sampling steps in time-distance coordinate generation.
- SurfaceType Route
- Surface material/type for a route segment.
- TransitType Route
- Type of transit.