How to get the location count of all trips?
Step 1: Get list of all trips
Firstly, you need to get the list of all trips with the below API. You need to use your project API key to authenticate the API.
To get the trips list based on user_id:
To get the trips list between dates:
Once you get the list of trip id’s as per your filters, you can proceed to the next step.
Step 2: Get location count
Now you can use the trip_id one by one from the previous step to trip summary api, which will give the trip route.
The count of route array from the response is the total location count for the trip. You can run this in a loop for all the trip ids to get the location count for all the trips.