Calculte the amount of tiles needs for a given area and an optional zooms range.
With npm:
$ npm i osm_tiles_calculator -g
$ osm_tiles_calculator -b -2 45 3 48
Try
$ osm_tiles_calculator --help for detailled usage instructions.
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
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
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"
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
osm_tiles_calculator is available under the MIT license.
Copyright (C) 2017 Phiphou