OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.navigation.destination_setup_request_handler_if.DestinationSetupRequestHandlerIf Class Reference

Resolve candidates and persist only explicitly confirmed destinations. More...

Public Member Functions

SavedDestination|None current (self, str key)
 Read a configured destination.
tuple[SavedDestination,...] search (self, str key, str address)
 Resolve an address using local data without changing configuration.
None save (self, SavedDestination destination)
 Persist a destination after user confirmation.
tuple[SavedDestination,...] search_online (self, str key, str address)
 Resolve a US address online without saving it.

Detailed Description

Resolve candidates and persist only explicitly confirmed destinations.

Member Function Documentation

◆ current()

SavedDestination | None ui.navigation.destination_setup_request_handler_if.DestinationSetupRequestHandlerIf.current ( self,
str key )

Read a configured destination.

Parameters
keyHome or work.
Returns
Existing destination, or None.

◆ save()

None ui.navigation.destination_setup_request_handler_if.DestinationSetupRequestHandlerIf.save ( self,
SavedDestination destination )

Persist a destination after user confirmation.

Parameters
destinationConfirmed address and normalized position.

◆ search()

tuple[SavedDestination, ...] ui.navigation.destination_setup_request_handler_if.DestinationSetupRequestHandlerIf.search ( self,
str key,
str address )

Resolve an address using local data without changing configuration.

Parameters
keyHome or work.
addressAddress entered by the user.
Returns
Immutable candidates, or an empty tuple.

◆ search_online()

tuple[SavedDestination, ...] ui.navigation.destination_setup_request_handler_if.DestinationSetupRequestHandlerIf.search_online ( self,
str key,
str address )

Resolve a US address online without saving it.

Parameters
keyHome or work.
addressAddress explicitly submitted for setup.
Returns
Candidates requiring map confirmation, or an empty tuple.

The documentation for this class was generated from the following file:
  • ui/navigation/destination_setup_request_handler_if.py