Back to all

Fetch all routes get https://api.samsara.com/fleet/routes - query parameters

The query parameters, startTime and endTime default to now.

  1. If a route has multiple stops
    1. If the vehicle has not started the route - do not return
    2. If the vehicle has started but has not completed all of the stops - will want this returned
    3. If the vehicle has completed all of the stops - do not return

Question

  1. Since all the routes can have multiple stops, and they will not all begin and end at the same time:
    1. What does the startTime and endTime map to?
    2. What should the values be set to in order to get the above results returned?