Reputation: 1989
I am developing a web site that needs to know the user's location. All of the users will be employees of the company; there's no tracking of customers or anything like that. The users will be employees out in the field. They could be on Android phones, iPhones, tablets, or laptops. I've found several ways to get their location, but can't find specific ways to get that location back to our website. Ideally, we'd like the user's location to be reported to database and the website would get that location when they login. Below are some ways I've researched to accomplish this. How do I get any of this information into my web site?
Upvotes: 0
Views: 10175
Reputation: 777
if i understood the idea, why not simply consume a webservice from the phone with the info?
Upvotes: 0
Reputation: 38187
Sounds like a job for navigator.geolocation.getCurrentPosition
in HTML5. That would be reasonably cross-platform and you could build it into web pages that report back to your database.
See:
Upvotes: 3