osm-ToniE / ptna

Public Transport Network Analysis for OSM
GNU General Public License v3.0
19 stars 5 forks source link

Need option to start analysis only if Overpass-Download failed #24

Closed osm-ToniE closed 6 years ago

osm-ToniE commented 6 years ago

Sometimes, the wget call to the overpass-api fails with error "4xx Too many requests". In this case and also in other cases, the downloaded data file *-Data.xml is empty. Further analysis is not possible.

It would be helpful to specify an option to analyze-network.sh to start download and analysis only if the file does not exist or is empty - just to start a second attempt only if the first failed.

osm-ToniE commented 6 years ago

analyze-network.sh -ogau -- usually starts the complete analysis. -o == get data via overpass query -g == get routes data from OSM wiki -a == start analysis -u == upload analysis result

analyze-network.sh -Ogau -- starts downloading and analysis only if *-Data.xml does not exist or is empty -O == get data via overpass query only if it does not yet exist, otherwise exit