Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (10 sloc) 837 Bytes

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.

You can’t perform that action at this time.