Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

We're creating a brief for a mobile website (not web app) and would like to know if a mobile website can access a handset's built in GPS radio to display the handset's location on a map.

In short is GPS functionality limited to apps alone?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

While Websites can not directly access the GPS, then can get the current location from the device (But of course only if the user has granted the permission). I think that this is done via HTML5's gelocation API, but I am not sure.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.