1.1.0 • Published 7 years ago

osm_tiles_calculator v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

npm Dependency Status MIT license Size

NPM

Osm Tiles calculator

Calculte the amount of tiles needs for a given area and an optional zooms range.

Install

With npm:

$ npm i osm_tiles_calculator -g

Usage

$ osm_tiles_calculator -b -2 45 3 48

Try

$ osm_tiles_calculator --help for detailled usage instructions.

Options

-bounds ( -b ) (required)

Bounds of the area for witch you want to calculate the tiles needed amount.

Bounds must be in the form minLon minLat maxLon maxLat

Latitudes must be lower that 85° and greater than -85°.

Example :

$ osm_tiles_calculator -b -2 45 3 48

-zooms ( -z ) (optional)

An optional option you can use to specify zoom or zoom range for the calculation. Default is range 0-20

$ osm_tiles_calculator -b -2 45 3 48 -z 13

or

$ osm_tiles_calculator -b -2 45 3 48 -z 13 15

-output ( -o ) (optional)

An optional option you can use to generate a .txt file containing the tiles count report.

$ osm_tiles_calculator -b -2 45 3 48 -o

You can also specify the filename for the generated file :

$ osm_tiles_calculator -b -2 45 3 48 -o my_file

or

$ osm_tiles_calculator -b -2 45 3 48 -o "this is my file"

-csv ( -c ) (optional)

An optional option you can use to generate a .csv file containing the tiles count report rather than the default .txt file.

Must be used in conjunction with the -out ( -o ) flag.

$ osm_tiles_calculator -b -2 45 3 48 -o "my csv report" -c

License

osm_tiles_calculator is available under the MIT license.

Contact

Copyright (C) 2017 Phiphou

@phiphou @__phiphou__

1.1.0

7 years ago

1.0.0

7 years ago