You haven't selected device, so time is ignored and you just get last positions for all you devices.
Seems like a flaw in the api to me, but if you want it like that, I'll do it... ;-)
How is that a flaw? Loading data from the database is expensive operation, so you need to specify devices. It doesn't make sense to load for all. If you really want to load all, you have to explicitly specify all.
But it was the position id, not the device id :-(
This gave nothing :-(
So to do a replay for a number of devices, I have to make a call for each device in the interval, then for each timepoint find the location of each device?
Meaning the browser have to store all the data of the entire ride for all riders.
Darn; I still think this should have been done in the api :-(
If you get nothing, it means there's no data in the time interval you selected.
But I can only get from one device at time?
If you want to get multiple at the same time you can use route report API. It returns essentially the same data, but you can select multiple devices and even groups.
Damn, I got to learn to use source control on "small projects" too, so I can get back to the code which tried to get all data in one go instead of the code now which does it one device at a time.
Or even go back to the original attempt which were to fetch all the locations for all selected devices at time=t and display them, then repeat at time=t+1 etc.
I guess It's better to get all the data in one chunck.
I get the exact same locations at
https://tracker.dom.tld/api/positions?from=2018-07-22T11:59:00.000Z&to=2018-07-22T12:00:00Z
https://tracker.dom.tld/api/positions?from=2018-06-22T07:59:00.000Z&to=2018-06-22T08:00:00Z
It seems to be the last known positions.
What do I do wrong?