opentraffic / reporter

OTv2: distributed service that matches raw GPS probe data to OSMLR segments and sends anonymized speeds to Datastore
GNU Lesser General Public License v3.0
13 stars 16 forks source link

download tiles based on BB #63

Closed gknisely closed 7 years ago

gknisely commented 7 years ago

closes #62

init copy of of tile download script and py that uses a bb to determine what tiles intersect with the bb and download those tiles.

download_tiles.sh Usage: $0 Bounding_Box URL Output_Directory Number_of_Processes Example Usage: $0 -74.251961,40.512764,-73.755405,40.903125 https://thewebsite.com/dir /data/tiles 10 false NOTE: Output directory will be deleted and recreated.

get_tiles.py ./get_tiles.py -b ${BBOX} > urls.txt Based on TileHierarchy and Tiles logic from Valhalla. We do check our bb and make sure it does not cross 180/-180, if it does we split it into two bounding boxes. Creates output that is used to download and save tiles via cURL Example output from NYC BB:

0/002/906.gph 1/046/905.gph 1/046/906.gph 2/000/752/102.gph 2/000/752/103.gph 2/000/752/104.gph 2/000/753/542.gph 2/000/753/543.gph 2/000/753/544.gph

gknisely commented 7 years ago

@dnesbitt61 updated

dnesbitt61 commented 7 years ago

:shipit: