I have a Chrome extension which uses the W3C Geolocation API to get the user's location. The extension is mostly used on Chromebooks.
I have noticed that the API seems to return the same coordinates (cached ?) most of the time, even though I have…
Using the standard HTML5 geolocation code, I am able to access the geolocation on desktop browsers (Chrome, Firefox), but not on my Samsung Galaxy S3 (default browser, Chrome). In the default browser, nothing at all happens. In Chrome, the yellow…
I have been reading the W3C Geolocation API specification and I was wondering if anyone has found any information on how accurate the location returned is.
I found the accuracy attribute:
The accuracy attribute denotes the accuracy level of the…
On my Chrome browser (66.0.3359.181 on win 7 64 bits), if I call a geolocation with a timeout, Chrome asks for permission and sends a PositionError "Timeout expired" after the timeout even if I didn't reply for the permission, whereas the W3C…
I'm implementing a fitness tracker with navigator.geolocation.watchPosition and getCurrentPosition . It works fine on android and on ios emulator, have 5/10m accuracy, but on iphone 5s, I have a terrible accuracy (50/65).
I found out that when I was…
I am working on a mobile web project that needs to know the compass direction the user's device is pointing. It's incredibly simple right now, but here's what I have:
var updateDirection = function (evt) {
…
I have been playing with the JavaScript Geolocation API (mostly in iOS 6 and Android Jellybean devices), and despite passing:
{
enableHighAccuracy: true,
maximumAge: 0
}
as PositionOptions, the pattern seems to be that on the first response I…
When i tried out a sample program in phonegap geolocation. I am getting the latitude and longitude of my current location without internet or GPS in my samsung pop. I don't know how it is getting the coordinates, altitude and timestamp of the…
Currently, we have to refresh the web-page (actually PhoneGap app) if the GPS was off and (after notifying the user) then turned-on.
How can we update the GeoLocation status without the need to refresh the page/app ?
After a request is to made for the user's geolocation, using either navigator.geolocation.getCurrentPosition or watchPosition, the user is shown a native permission dialog.
If the user selects "Don't Allow" to the request to share their location,…
I have implemented HTML Geolocation with a 10 second timeout.
However, the 'failure' callback is not being triggered after 10 seconds.
(The 'failure' callback is called if the user rejects permission to share his position).
What is wrong with my…
I'm working on a personal project that uses the W3C Geolocation API to retrieve the user's location and then load the weather forecast of that location using Wunderground's API by making an AJAX request.
The process is this:
The user loads the…
The website I'm working on uses HTML5 geolocation api. It works fine, but I need to know if the feature has been authorized.
navigator.geolocation only tells if the feature is available. What I want to know is whether the user has enabled it…
can i use Google Analytics API in my php or javascript code to find the location of visitor of my website ?
this link talks about API, but nothing about location of…
To this date my android phone (and googles android emulator AVD/SDK) doesn't work with w3c geolocation API from web pages ex.
the example at : http://www.w3schools.com/html/html5_geolocation.asp
or alternative : http://ocupado.eu/info
" The W3C…