mdg:geolocation

v1.3.1Published 3 years ago

Meteor Geolocation Package

Add it to your Meteor app with meteor add mdg:geolocation.

API Documentation

There are currently no options to set. Every method is reactive using Tracker, and will automatically update with new location data from the device.

Geolocation.error()

Returns the position error that is currently preventing position updates.

Geolocation.currentLocation()

Returns the position that is reported by the device, or null if no position is available.

Geolocation.latLng()

A simple shorthand for currentLocation() when all you need is the latitude and longitude. Returns an object that has lat and lng keys.