get Routes
suspend fun getRoutes(page: Int, pageSize: Int, fromDate: String, toDate: String, sendPolyline: Boolean? = null): GetRoutesResult
Get paginated routes list with date range filtering.
This method implements an offline-first approach:
Returns cached routes immediately if available
Background sync will update the data automatically via delta sync
Return
GetRoutesResult containing routes list with pagination metadata, or error
Parameters
page
Page number for pagination (1-based)
page Size
Number of routes per page
from Date
Start date for route filtering in ISO format (YYYY-MM-DD)
to Date
End date for route filtering in ISO format (YYYY-MM-DD)
send Polyline
Optional flag to include polyline data in API response