I have a table where i keep user's location history. The system gets user's current location each minute and writes it into "user_locations" table.
Later on; when showing the locations that the user has been; this is what it seems like when selecting all records from "user_locations":
Apparently the user has been too lazy all day but it ends up so that i have to handle the outcomes of his laziness -which he is unaware of i think-.
Okay. What i want to do is to show only one marker in a (let's say) 50 meter radius and the marker label to indicate: "The user has been here from 02:00 to 23:00". Of course the dates would be the min and max date values of the records in the cluster.
How can i achieve this?
Here is my table structure:
I hope i was able to tell what is on my mind.
Regards.
أكثر...
Later on; when showing the locations that the user has been; this is what it seems like when selecting all records from "user_locations":

Apparently the user has been too lazy all day but it ends up so that i have to handle the outcomes of his laziness -which he is unaware of i think-.
Okay. What i want to do is to show only one marker in a (let's say) 50 meter radius and the marker label to indicate: "The user has been here from 02:00 to 23:00". Of course the dates would be the min and max date values of the records in the cluster.
How can i achieve this?
Here is my table structure:
- Table Name: user_locations
- Columns: id, user_id, created_at (timestamp), location (Point, geography, srid:4326)
I hope i was able to tell what is on my mind.
Regards.
أكثر...