ot::BorderRouter::RoutingManager::GetRoutePreference() const method
Gets the current preference used for published routes in Network Data. The preference is determined as follows: - If explicitly set by user by calling `SetRoutePreference()`, the given preference is used. - Otherwise, it is determined automatically by `RoutingManager` based on the device's role and link quality.
Return value
The current published route preference.