1.8.1 • Published 10 years ago

latitude v1.8.1

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

latitude Build Status

Get location info using CoreLocation (macOS)

GIF

Install

$ npm install -g latitude

to use it as a CLI tool.

$ npm install --save latitude

to use it in your project

Usage

const latitude = require('latitude');

latitude()
.then(location => {
	/*
		{latitude: 47.06367550072804,
		longitude: 8.28075766132394,
		accuracy: 65,
		altitude: 447.5973815917969}
	*/
})
.catch(err => {
	// error description
});

API

latitude()

CLI

$ npm install --global latitude
$ latitude

whereami

This project uses a modified version of https://github.com/robmathers/WhereAmI by Rob Mathers. The source code is in the /whereami directory. To build the code and put the executable into bin/whereami, run npm run build. You need to have Xcode installed.

License

MIT © Jonny Burger

1.8.1

10 years ago

1.8.0

10 years ago

1.7.0

10 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago