Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

random-coordinates

mock-end1.2kMIT1.0.1

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

latitude, longitude, coordinates, location, random, randomly, randomize, chance, test, dice, mock

readme

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"

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.