1.0.0-20190522.1 • Published 5 years ago

@totvs/mingle-ionic-geolocation v1.0.0-20190522.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

@TOTVS/MINGLE-IONIC-GEOLOCATION

This Package get informations about the device.

Installation

Using npm: $ npm install --save @totvs/mingle-ionic-geolocation

// using ES6 modules
import { GeolocationPlugin } from @totvs/mingle-ionic-geolocation

// using CommonJS modules
var geolocation = require('@totvs/mingle-ionic-geolocation')

Usage

Create an instance of the GeolocationPlugin:

var geolocation = new GeolocationPlugin();

getCurrentPosition

This method is used to return the current coordinates (latitude and longitude) of the device.

this.geolocation.getCurrentPosition();

isLocationEnabled

This method is used to verify that the Location Service is enabled.

this.geolocation.isLocationEnabled();