sdk-search / com.tomtom.online.sdk.search.data.alongroute / IAlongRouteSearchQuery / withDetourOffset

withDetourOffset

@NonNull abstract fun withDetourOffset(): IAlongRouteSearchQuery

Turns on the calculation of the distance between the start of the route and the starting point of the detour to a POI. When specified, the detourOffset is present in the response.

Return
IAlongRouteSearchQuery: The builder of the query with the enabled detour offset calculation.