Here's the scenario:
For example, if I wanted to show all the homes of the users of a city (those that are registered in the system) it would only be necessary to make a request in the database before the page is loaded, to recover the geographic coordinates that were previously provided by the users during the sign-up process, and submit to javascript when it's using API to instantiate the map. This is how I do it today with my projects.
My question would be how to show in real time the displacement of any user on the same map previously created? How do you implement this functionality?