Is there a way to catch which method is currently being used by the device when geolocation (watchPosition) is called? i.e. if the position comes from GPS data or some sort of trangulating or ip.. Can’t seem to find anything in the position object in the callback..
Share
as far as I know, you can’t get the source. The information provided came in my experimentation nowhere close to my location (it thought I was 100km away).
What you do get, is information how accurate the lat/long is. Combine that with altitudeAccuracy outlined in the specification and you can assume which service (GPS, WLAN, etc.) gave you that information.
Further, you would then use something like the Open Geo DB to nail-down in which city the user is.