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

withSortBy

@NonNull abstract fun withSortBy(sortBy: SortBy!): IAlongRouteSearchQuery

Sorts the returned results by the provided criteria. If the method is not called, the results by default are sorted using the distance criteria.

Parameters

sortBy - SortBy!: The enum indicating the sorting criteria.

Return
IAlongRouteSearchQuery: The builder of the query with a new value for sortBy.