Last location on map


I received every X sec the gps coordinates.
I'm trying yo create a coordinate map that show only the last location.

I tried several options but the map always show also the old points.

Is there a option to show only the last location?


I don't think this is possible at the moment.

tile map requires you to use geohash aggregation, which means it will split data into buckets, once bucket per region on map. so even if you do top hits on top of that, you will only get latest point for each geohash region.

could you open an enhancement request on and describe your use case as good as you can ?

thank you

A simple and scalable approach to this is to index into 2 indices. The first index is the one you have today, where each document represents one reading. The second index is not time-based and has a single document per entity (an entity-centric index) you are tracking. Here you update the record with the latest known position. When you want to plot last known position, you can use this index instead.

Thanks, I'll try Entity-Centric Indexes and let you know the result

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.