Reputation: 5561
Is there any way that a webpage can make a request for the users location from the android / iphone device ?
Since all I need is the users location, I am trying to figure out if there is anyway I can bypass developing a native app and use some nifty html5 call to just get the users location so all a user would need to do is visit my webpage and provide permission to access his/her location?
Upvotes: 4
Views: 3081
Reputation: 73484
Yes. Webkit browsers on Android and Iphone support geolocation. The Google maps api has some great info on it.
Upvotes: 4
Reputation: 27107
Have a look at the Google Maps API (http://code.google.com/apis/maps/documentation/javascript/introduction.html), particularly the sensor parameter...may give you want you need.
Upvotes: 2