random-coordinates

1.0.1 • Public • Published

random-coordinates

Generate a random coordinates, which are latitude and longitude, comma separated.

MIT License

build:? coverage:?

Install

$ npm install --save random-coordinates 

Usage

var randomCoordinates = require('random-coordinates');
 
// API
// - randomCoordinates([options]);
 
// options
// - fixed
 
randomCoordinates();
// => "-29.52974, 24.52815"

By default includes 5 fixed digits after decimal, can specify otherwise.

randomCoordinates({ fixed: 2 })
// => "-49.16, 68.81"

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

Package Sidebar

Install

npm i random-coordinates

Weekly Downloads

28

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bubkoo