0.1.21 • Published 9 years ago
com.vastsoft.cordova.plugin.geolocation v0.1.21
CordovaGPS
Cordova plugin for GPS location using Android GPS services works without WIFI and 3G. only GPS hardware. the version is coming soon for IOS.
sample.js
if (window.geolocation) {
window.geolocation.watchGPS(function(result) {
$("#status").text("status : " + result.status);
if (result.status == "fixed")
$("#gps").text("geolocation : " + result.lng + ", " + result.lat);
else
$("#gps").text("");
}, function(error) {
$("#gps").text("error");
}, {
minTime : 1000,
minDist : 0
});
}
the result.status field could be "searching", "fixed", "disabled", "enabled"
if the result.status equals "fixed", the "result" object will contains other fields below: "lng","lat","alt","accuracy","bearing","speed"
you can use it like : result.lng
sample.html
<div id="status"></div>
<div id="gps"></div>
Contact
Vastsoft
joeradar@vastsoft.com
0.1.21
9 years ago
0.1.20
9 years ago
0.1.19
9 years ago
0.1.18
9 years ago
0.1.17
9 years ago
0.1.16
9 years ago
0.1.15
9 years ago
0.1.13
9 years ago
0.1.12
9 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago