random-coordinates
v1.0.1
Published
Generate a random coordinates, which are latitude and longitude, comma separated.
Downloads
533
Maintainers
Readme
random-coordinates
Generate a random coordinates, which are latitude and longitude, comma separated.
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
- random-latitude - Generate a random latitude.
- random-longitude - Generate a random longitude.
- random-altitude - Generate a random altitude, in meters.
- random-depth - Generate a random depth, in meters. Depths are always negative.
- random-geohash - Generate a random geohash.
- random-geojson - Generate a random geojson.
- random-country - Return a random country.
- random-lang - Return a random language name.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.