Thanks for reading.
I have the basics of how the HTML5 geolocation works, I can grab permission and get the gps coords, monitor them using watchPosition etc. display the accuracy, errors and so on, and to know if they are within 50ft of a specific set of coords that I specify and display different messages depending if they are inside or outside this radius.
What I need to do next is figure out a way to combine this with multiple users viewing the page at the same time from the same location to display a message.
For example, if I want x people to go to the same coordinates (within a specific radius eg. 50ft) at the exact same time and load the page on their phone, then once all x viewers have the page loaded it would recognize that fact and display a message to them all.
Should there not be enough people yet it would tell them how many out of x are there etc.
Eventually I would like to have this set up in such a way that I can have multiple different locations each with their own specific amount of people needed and message to display, saved in a database and editable by the creator etc. but for now I just need help figuring out how to go about knowing when multiple people viewing the page are all at the correct location at the same time and displaying a message to them.
If I could also display all viewers of the page simultaneously on a Google map embedded on that page then that would be cool too, but I’ll settle for figuring out the above.
Not sure where to begin to be honest.
Any help is very appreciated.
Now I just need to figure out a way to combine the monitoring of all current viewers and when X number of them are close enough to the location, display the specific message.