Menu
Sites
Language

Read GPS data

Read GPS data (Gear device)
function successCallback(position) {
			console.log("success " );
			console.log("Longitude "
					+ position.coords.longitude);
			console.log("Latitude" + position.coords.latitude);
		}

		function errorCallback(error) {
			console.log("error " + error.code);
		}
		if (navigator.geolocation) {
			navigator.geolocation.getCurrentPosition(
					successCallback, errorCallback, {
						maximumAge : 60000
					});
		} else {
			console.log("Geolocation not suported ");
		}

Responses

1 Replies
Philippe Coval

Note RDPQ GPS is simulated and

check indentation

 

A more complex GPS application :

https://notabug.org/tizen/mapo

Feel free to send patches too