latitude
// usage
randBox.latitude()
randBox.latitude({fixed: 7})
randBox.latitude({format: 'dms'})
Generate a random latitude.
randBox.latitude();
=> 57.99514
range: -90 to 90
By default includes 5 fixed digits after decimal, can specify otherwise.
randBox.latitude({fixed: 7});
=> -29.6443133
By default includes entire range of allowed latitudes, can specify a min and/or max to bound it
randBox.latitude({min: 38.7, max: 38.9});
=> 38.82358
By default latitudesโ format is dd, can specify otherwise.
randBox.latitude({format: 'ddm'});
=> "41ยฐ44.9592"
randBox.latitude({format: 'dms'});
=> "56ยฐ2โ9.8187โ"
Last updated on: