I create a new GeoPoint every time a user’s location changes. I add metadata unique to the user. The result is a table that includes many hundreds of multiple GeoPoints with different locations but same metadata. There will never be two users with the same metadata.
I search in a radius for GeoPoints and want only the most recent “update” of a user’s location, ignoring any other older GeoPoint with the same metadata. The point of this is to create an array of one single, up-to-date GeoPoint for each unique user.
What is the best way to do this?
Right now I am considering adding a filter method that would go through my returned BackendlessCollection and get the first GeoPoint, then add the metadata information to an array. I would check against this array for every GeoPoint in the collection, ignoring any that are older than those in the array, and adding to it each new unique metadata it comes across.