0.2.1 • Published 8 years ago

generate-geo-testing-data v0.2.1

Weekly downloads
11
License
BSD
Repository
github
Last release
8 years ago

Build Status

generate-geo-testing-data

example

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

0.2.1

8 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago