简体   繁体   中英

How to show current location of multiple users on webpage?

I am working on a website whose requirement is to show current locations of multiple users on PC. The location needs to be show on PC website and Users location needs to be fetched from their GPS enabled mobile (Android or Iphone). Is there any way that I can see current position of particular mobile device(android or iphone) on my PC webapge? Please , help me to achieve it using JS

simply make them to sign into the account, and have some kind of user id. Then have a logic which with the user can upload & update the location in your site, save the location with id (alongside time stamp) in a database, And then create a map, and load the data from database and show different users in the map.

Then decide whether the timestamps information could be used to disqualify the location, and how often you want to refresh the map.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM