OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
navigation.appointment_route_estimator Namespace Reference

Adapt existing offline geocoding and routing contracts for appointments. More...

Functions

tuple[GeoPoint,...] resolve_appointment_address (GeocoderIf geocoder, str location)
 Return address candidates without accepting street-level approximations.
float estimate_appointment_route (RoutePlanningControllerIf router, GeoPoint origin, GeoPoint destination)
 Calculate travel duration without changing active guidance.

Detailed Description

Adapt existing offline geocoding and routing contracts for appointments.

Function Documentation

◆ estimate_appointment_route()

float navigation.appointment_route_estimator.estimate_appointment_route ( RoutePlanningControllerIf router,
GeoPoint origin,
GeoPoint destination )

Calculate travel duration without changing active guidance.

Parameters
routerIndependent route calculation controller.
originCurrent geographic position in radians.
destinationAppointment destination in radians.
Returns
Estimated travel duration in seconds.

◆ resolve_appointment_address()

tuple[GeoPoint, ...] navigation.appointment_route_estimator.resolve_appointment_address ( GeocoderIf geocoder,
str location )

Return address candidates without accepting street-level approximations.

Parameters
geocoderExisting geocoding contract.
locationCalendar location text.
Returns
Candidate address coordinates.