NaviController

object NaviController : KoinComponent

A singleton object that serves as the entry point for using all features of the KMP SDK.

All core functions, from SDK initialization to search, routing, and guidance, must be called through NaviController.

Functions

Link copied to clipboard
fun addMapIcon(mapMarkerOptions: MapMarkerOptions)

Adds a map icon (marker) at the specified location.

Link copied to clipboard
fun applicationInitialize(context: Any?)

Performs the overall initialization of the SDK.

Link copied to clipboard

Cancels the ongoing route guidance.

Link copied to clipboard
fun forceHideMapComponent(componentID: UIComponent, hide: Boolean)

Forcibly sets the visibility state of a specific UI component.

Link copied to clipboard
fun getCarHeight(): Double

Gets the currently set total vehicle height option value.

Link copied to clipboard
fun getCarLength(): Double

Gets the currently set total vehicle Length option value.

Link copied to clipboard
fun getCarWeight(): Double

Gets the currently set total vehicle weight option value.

Link copied to clipboard
fun getCurrentPosition(): LocationInfo.NaviLocation

Returns the current position.

Link copied to clipboard

Returns the current map view mode.

Link copied to clipboard
fun getOrbisLogDrive(): Boolean

Gets whether log driving is enabled.

Link copied to clipboard
fun initalizeNavi(activity: Any?, listener: OnNaviInitializeListener)

Initializes the Orbis SDK engine based on TomTom.

Link copied to clipboard

A function to check if a BottomViewListener is registered from a 3rd party app.

Link copied to clipboard
fun naviBottomButtonEvent(bottomBtnEvent: BottomBtnEvent)

A function to set an event from the BottomViewModel.

Link copied to clipboard
fun removeMapIcon(markerId: String)

Removes a marker added to the map using its identifier (markerId).

Link copied to clipboard

Removes all markers added to the map at once.

Link copied to clipboard

A function to remove the interface registered by the 3rd party app in order to operate the features provided by the BottomView.

Link copied to clipboard
fun requestGeocoding(address: String, onGeoCodingListener: OnGeocodingListener)

Calls the Geocoding API for the requested address to get location information.

Link copied to clipboard
fun requestReverseGeocoding(lat: Float, lon: Float, onReverseGeocodingListener: OnReverseGeocodingListener)

Calls the ReverseGeocoding API for the requested coordinates to get address information.

Link copied to clipboard
fun runGuidance(searchItem: LocationInfo.SearchItem, routeID: String)

Starts guidance for a calculated route.

Link copied to clipboard
fun runRoute(start: LocationInfo.RoutePtItem, end: LocationInfo.RoutePtItem, via: List<LocationInfo.RoutePtItem>? = null, listener: OnOrbisRouteListener)

Runs a route calculation.

Link copied to clipboard
fun runSearch(req: ReqSearch, listener: OnSearchListener)

POI Search

Link copied to clipboard
fun setCarHeight(height: Double): Boolean

Total vehicel height setting Unit: Meter

Link copied to clipboard
fun setCarLength(length: Double): Boolean

Total vehicel length setting Unit: Meter

Link copied to clipboard
fun setCarWeight(weight: Double): Boolean

Total vehicel weight setting (including cargo) Unit: Ton

Link copied to clipboard

Sets the map click event listener.

Link copied to clipboard
fun setMapEnableRotate(enable: Boolean)

Enables or disables the map rotation gesture.

Link copied to clipboard
fun setMapLevel(level: Int)

Sets the map zoom level.

Link copied to clipboard

Sets the map mode listener.

Link copied to clipboard

Sets an event listener that is called when the map is moved.

Link copied to clipboard
fun setMapPadding(bottom: Int, left: Int, right: Int, top: Int)

Sets the padding for the map view.

Link copied to clipboard
fun setMapPosition(latitude: Double, longitude: Double, angle: Double)

Moves the map's position based on the specified coordinates.

Link copied to clipboard

Changes the route line color.

Link copied to clipboard
fun setMapTheme(theme: MapTheme)

Sets the desired map theme (Automatic, Day, Night).

Link copied to clipboard

Sets the map view mode.

Link copied to clipboard

When registering a BottomViewEvent, you can override the default behavior and replace it with a custom action from the 3rd party app.

Link copied to clipboard
fun setRouteSearchItem(searchItem: LocationInfo.SearchItem)

Sets the search item for routing.

Link copied to clipboard
fun zoomIn()

Performs a map zoom-in. Zooms in one level from the current level.

Link copied to clipboard
fun zoomOut()

Performs a map zoom-out. Zooms out one level from the current level.