generate-geo-testing-data

use a geonames extract to generate testing geocodes, tiles, and bounding boxes

npm install generate-geo-testing-data
18 downloads in the last week
32 downloads in the last month

Build Status

generate-geo-testing-data

example

var generator = require('generate-geo-testing-data')({
    mode: 'tiles'
});

function request() {
    generator(function(uri) {
        // do request
    });
});

api

generator(options, formatter)

valid options:

  • mode can be tiles, batch, latlon, place, jsonp, or replay
  • minzoom
  • maxzoom

formatter takes a function that takes the data, like xyz coordinates or placenames, and turns them into output

npm loves you