ItineraryImpl

Constructors

Link copied to clipboard
constructor(context: Context, mapApi: MapApi, searchRepository: SearchRepository)
constructor(context: Context, mapApi: MapApi, searchRepository: SearchRepository, @Nullable alertProviderSupplier: Supplier<MapUiApi.AlertProvider>)

Functions

Link copied to clipboard
open fun add(item: ItineraryItem): Boolean
Add item to itinerary
Link copied to clipboard
open fun addAll(stops: List<ItineraryItem>): Boolean
Add multiple items to itinerary
Link copied to clipboard
Add a listener for when error message should be shown to UI
Link copied to clipboard
Add a listener for when itinerary items changed
Link copied to clipboard
Whether or not all destinations are valid
Link copied to clipboard
Builds IndoorOutdoorRouteOptions using custom parameters.
Link copied to clipboard
Builds the canonical RoutingOptions from the user's saved routing preferences (getRoutingOptions) plus the current buildIndoorOutdoorRouteOptions indoor/outdoor options.
Link copied to clipboard
open fun createRequest(mContext: Context, @NonNull items: List<ItineraryItem>, useEmergencyExit: Boolean, @Nullable alertProviderSupplier: Supplier<MapUiApi.AlertProvider>): RouteRequest
Static route-build helper.
Link copied to clipboard
open fun createRouteRequest(@NonNull context: Context, @NonNull items: List<ItineraryItem>, useEmergencyExit: Boolean): RouteRequest
Instance route-build site for the route-distance preview (used by MapViewModel via createRouteRequest): builds the request with THIS instance's lazily-resolved MapUiApi.AlertProvider so alert-derived routing constraints are injected exactly as in processRoutingRequest.
Link copied to clipboard
open fun get(position: Int): ItineraryItem
Retrieve the itinerary item in the given position
Link copied to clipboard
Fetch the current itinerary
Link copied to clipboard
Whether or not the start is set to the user's current location
Link copied to clipboard
open fun isStartValid(): Boolean
Whether or not the start position is valid
Link copied to clipboard
open fun processRoutingRequest(routingRequestCallback: RoutingRequestCallback)
Process navigation request based on the current itinerary
Link copied to clipboard
open fun removeByIndex(idx: Int): Boolean
Remove item from itinerary by index
Link copied to clipboard
Remove item from itinerary (by look-up)
Link copied to clipboard
open fun removeByWaypoint(waypoint: Waypoint): Boolean
Remove waypoint from itinerary (by look-up)
Link copied to clipboard
remove a listener for when error message should be shown to UI
Link copied to clipboard
remove a listener for when itinerary items changed
Link copied to clipboard
open fun removeNonPropertyItineraries(selectedPropertyId: Int)
Removes itinerary items that do not match with the selected property ID
Link copied to clipboard
open fun reset()
Reset/clear the itinerary
Link copied to clipboard
open fun set(position: Int, item: ItineraryItem): Boolean
Replace the specific position with the supplied item
Link copied to clipboard
open fun setAll(items: List<ItineraryItem>): Boolean
Replace existing itinerary with the supplied items
Link copied to clipboard
open fun swapItems(idx1: Int, idx2: Int): Boolean
Swap itinerary item positions
Link copied to clipboard
open fun updateTag(tag: Tag): Boolean
If a tag with a matching tagId is present in itinerary, update its tag information