# generate-geo-testing-data **Repository Path**: mirrors_mapbox/generate-geo-testing-data ## Basic Information - **Project Name**: generate-geo-testing-data - **Description**: use a geonames extract to generate testing geocodes, tiles, and bounding boxes - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://secure.travis-ci.org/mapbox/generate-geo-testing-data.png?branch=master)](http://travis-ci.org/mapbox/generate-geo-testing-data) # generate-geo-testing-data ## example ```js var generate_data = require('generate-geo-testing-data'); var generator = generate_data( { mode: 'tiles' }, function(z, x, y) { return [z, x, y].join('/') + '.png'; }); generator(function(uri) { // uri is '0/0/0.png' }); ``` ## api `generator(options, formatter)` valid options: * `mode` can be tiles, batch, latlon, place, jsonp, or replay * `minzoom` * `maxzoom` * `bbox` (for `batch` and `polyline`) * `maxBatch` (for `bench` and `polyline`) - max number of points to generate * `z` (for `polyline`) - 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