How to go about listing locations on a webpage?

Hi,

There are 5 different people who will have android or ios devices around the city, I have to make a web page in which their location will be showing by the way of marker on the google maps. It needs to be refreshed after few seconds, how do I go about it ?

I understand I can use https://developers.google.com/maps/documentation/javascript/examples/icon-complex to show the markers, but what do I do in order to get their location via their devices ?

Thanks.

Does it need to show all 5 on the map at once, or just the person’s own location?
There is a Geolocation API that may help. But if sharing multiple locations it will require some sever side stuff too.

Hi,

Yes all 5 needs to show at the same time, though they all will be in the same city but different locations in the city. I just want to know how to get the user’s location to a url ? I will then save the long/lats in the database and when the location needs viewing, I will fetch the long / lats from the database and show via google map in a web page.

But how to keep on getting the long/lat of 5 users after every 30 seconds and send them to a url for saving into database ?

Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.