Well the question is in the title.
How can i obtain GPS location on a mobile device in Android Webkit or/and Opera Mobile 10?
So in iPhone Safari this is doable. How about those 2 browsers? I looked for such functionalities and found nothing. Is that doable via javascript as well?
see http://html5demos.com/geo. Relevant bit of JS for HTML5 location:
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(successCallback, errorCallback);
} else {
error('not supported');
}
yep, it's that easy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With