random-latitude
Generate a random latitude.
Install
$ npm install --save random-latitude
Usage
var randomLatitude = ; // API// - randomLatitude();// - randomLatitude(options); // options:// - min : default -90// - max : default 90// - fixed: default 5 ;// => 57.99514
By default includes 5 fixed digits after decimal, can specify otherwise.
// => -29.6443133
By default includes entire range of allowed longitudes, can specify a min and/or max to bound it:
;// => -38.82358
Related
- random-coordinates - Generate a random coordinates, which are latitude and longitude, comma separated.
- 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.