2019-07-14 16:16:50 +03:00
|
|
|
# Importing a new city into A/B Street
|
|
|
|
|
|
|
|
My current priority is to make Seattle work very well, but if you want to try
|
|
|
|
out A/B Street in another place, you can follow this guide. Please file a Github
|
|
|
|
issue or email <dabreegster@gmail.com> if you hit any problems.
|
|
|
|
|
2019-09-02 22:37:40 +03:00
|
|
|
First obtain a `.osm` with your desired area. You can use a tool like Osmosis to
|
|
|
|
clip a specific area from a large file. Put the `.osm` in `data/input/`.
|
2019-08-26 04:30:39 +03:00
|
|
|
|
|
|
|
Then you'll run some tools to import the map. Make sure you can compile
|
2019-09-02 22:37:40 +03:00
|
|
|
everything [from source](INSTRUCTIONS.md).
|
2019-07-14 16:16:50 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
cd convert_osm
|
|
|
|
cargo run --release -- \
|
|
|
|
--osm=../data/input/your_city.osm \
|
|
|
|
--output=../data/raw_maps/your_city.bin
|
|
|
|
cd ../precompute
|
|
|
|
cargo run --release -- ../data/raw_maps/your_city.bin
|
|
|
|
```
|
|
|
|
|
|
|
|
You should now be able to load the map using the option from the main game menu,
|
2019-09-07 23:09:09 +03:00
|
|
|
or by running `cd game; cargo run --release ../data/maps/your_city.bin`.
|
2019-07-14 16:16:50 +03:00
|
|
|
|
|
|
|
## Future work
|
|
|
|
|
|
|
|
There are Seattleisms baked into the code.
|
|
|
|
|
|
|
|
- `import.sh` should be generalized.
|
|
|
|
- The driving side of the road is hard-coded to the right. Look for "driving on
|
|
|
|
the left" in `map_model/src/make/half_map.rs`.
|