0.1.21 • Published 10 years ago

com.vastsoft.cordova.plugin.geolocation v0.1.21

Weekly downloads
1
License
Apache 2.0
Repository
-
Last release
10 years ago

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

http://www.vastsoft.com

0.1.21

10 years ago

0.1.20

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago