generate-geo-testing-data
example
var generate_data = ; var generator = ; ;
api
generator(options, formatter)
valid options:
mode
can be tiles, batch, latlon, place, jsonp, or replayminzoom
maxzoom
bbox
(forbatch
andpolyline
)maxBatch
(forbench
andpolyline
) - max number of points to generatez
(forpolyline
) - used to estimate tile size, which is used to generate point density
Mode Options:
- tiles gives a z, x, y
- latlon does width, height, lat, lon, zoom
- jsonp generates numbers
- place generates place names
- batch generates a given number of random points within a bounding box
- polyline generated a random encoded polyline within a bounding box
formatter takes a function that takes the data, like xyz coordinates or placenames, and turns them into output