I would like to draw a line between geopoints that I get from an index. I want to create a "tracking route" for the last 10 positions of an item in my index : Get the last 10 positions (lon, lat) of an item, plot the 10 geopoints on the map and draw a line between the geopoints.
I have already read the Mapping Airport Connections Tutorial, I know how to plot my geopoints. However in my case, I dont really have a field "source" and "target" in my index, I only have the fields @timestamp and position (lon, lat). I think that the source is my tenth oldest element, pointing to the position of the ninth. Then this becomes the source and points to the eighth...etc. And I have no idea on how to do that.
How to get the last 10 items of an index by their timestamp and plot lines between them ?
I am not sure if I am clear, sorry if it's not the case !