title: What's the best way to share real-time GPS coordinates among a group?
body: <p>I'm designing a game that requires the players to know the GPS real-world location of the other players in (close to) real-time.  There could be ~ 5 seconds of delay and still function well.</p>
  
  <p>The target platform is Android, however I was interested in including my iPhone friends, so I was hoping to build this on the web using HTML5, Javascript and PHP.</p>
  
  <p>I've tried a few different approaches such as BeaconPush and constantly reading/writing to a MySQL database, but I am not sure the BEST and most efficient way to go about it.  I start writing a bunch of code and then discover a problem and try another route and seem to keep bumping my head.</p>
  
  <p>The game is a little bit like Pac-Man.  Three players are trying to "catch" one player.  The one player has a specific objective on a real-world map.  The game grabs coordinates from a database and spawns objects/icons on to a Google map. Using navigator.geolocation.watchPosition the game checks for hit detection with the items and the players can pickup items as they pass over them.  All of this works fine, but the map has to be able to update object icons as they get removed and update icons with the locations of the other players in near-real time.  I'm not sure how to share everyone's GPS location in the most efficient way.  The whole game is basically functioning and working, except this one (albeit giant) piece of the puzzle.  </p>
  
  <p>Thanks for any guidance!</p>