#GEO Tiles Downloader

This is a script for map tiles downloading + simple web app for testing and selecting the area. 

## Usage

	./geotiles.sh <lat> <lng> <lat2> <lng2> <MIN_ZOON> <MAX_ZOOM> -d <NAME_OF_THE_MAP>

with specific map source 

	./geotiles.sh <lat> <lng> <lat2> <lng2> <MIN_ZOON> <MAX_ZOOM> -d <NAME_OF_THE_MAP> -m <your tile source>

## Testing

create MAP directory and symlink to it from `TESTING_WEB` directory

	mkdir MAP
	cd TESTING_WEB
	ln -s ../MAP/ maps

- point your server to the `TESTING_WEB/` and open it in the browser
- select target map using right corner menu
- click and draw rectangle area that you would like to have tiles for
- copy the resulting commandline and execute in terminal 

	`./geotiles.sh <LAT_LNG_COUPLES_FROM_CLIPBOARD> <MIN_ZOON> <MAX_ZOOM> -d <NAME_OF_THE_MAP>`

- wait until the script is complete
- check `MAP/NAME_OF_THE_MAP` for tile set 

## Troubleshooting 

If you see *Something went wrong* message and the script has been interrupted, that means that you most probably abuse the server and you was banned for a while. Try to change server. 

IMPORTANT! Please use reasonably. Don't abuse tile servers!


## License

Copyright © 2018 Dmitry Shalnov [interplaymedium.org]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this files except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.




