mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 16:02:23 +03:00
7e4d529872
Automated: 1) rm -fv `find data/system/gb/ | grep base.bin | xargs` 2) rm -fv `find data/system/gb/ | grep dutch.bin | xargs` 3) for city in allerton_bywater ashton_park aylesbury aylesham bailrigg bath_riverside bicester castlemead chapelford clackers_brook culm dickens_heath didcot dunton_hills ebbsfleet great_kneighton hampton handforth kidbrooke_village lcid long_marston micklefield newcastle_great_park poundbury priors_hall taunton_firepool taunton_garden tresham trumpington_meadows tyersal_lane upton wichelstowe wixams wynyard; do ./importer/actdev_scenarios.sh $city; done
21 lines
723 B
Bash
Executable File
21 lines
723 B
Bash
Executable File
#!/bin/bash
|
|
# This script imports scenarios an actdev site that's already been imported.
|
|
# It's run manually once per site.
|
|
|
|
set -e
|
|
|
|
CITY=$1
|
|
if [ "$CITY" == "" ]; then
|
|
echo Missing args;
|
|
exit 1;
|
|
fi
|
|
SITE=`echo $CITY | sed -r 's/_/-/g'`
|
|
|
|
rm -fv *.json
|
|
wget https://raw.githubusercontent.com/cyipt/actdev/main/data-small/$SITE/scenario_base.json
|
|
wget https://raw.githubusercontent.com/cyipt/actdev/main/data-small/$SITE/scenario_go_active.json
|
|
|
|
cargo run --release --bin import_traffic -- --map=data/system/gb/$CITY/maps/center.bin --input=scenario_base.json --skip_problems
|
|
cargo run --release --bin import_traffic -- --map=data/system/gb/$CITY/maps/center.bin --input=scenario_go_active.json --skip_problems
|
|
rm -fv *.json
|