0.1.6 • Published 6 years ago

@zenlocator/geo v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Geo (@zenlocator/geo)

Getting started

Install geo via:

  • bower: bower install @zenlocator/geo
  • node.js: npm install --save @zenlocator/geo
  • as cli tool: npm install -g @zenlocator/geo

Use in the browser (wherever ES5 is supported):

<script type="text/javascript" src="geo.min.js"></script>
<script type="text/javascript">

  var geo = new Geo();

  var point = geo.getDestinationPoint({ lat: 37.787, lng: -122.407 }, 1000, 45);
  console.log(point); // { lat: '38° N', lng: '122° W' }

</script>

Use in Node.js:

var Geo = require('@zenlocator/geo');

var geo = new Geo();
var point = geo.getDestinationPoint({ lat: 37.787, lng: -122.407 }, 1000, 45);

console.log(point);  // { lat: '38° N', lng: '122° W' }

Or via CLI:

$ geo get-destination-point --format list 37.787,-122.407 1000 45
38° N,122° W

API

@todo

License

MIT

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago