mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
Add Zurich (CH) city
This commit is contained in:
parent
d833f82c73
commit
f27d14a285
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@ data/input
|
||||
data/system/at/salzburg
|
||||
data/system/br/sao_paulo
|
||||
data/system/ca/montreal
|
||||
data/system/ch/zurich
|
||||
data/system/cz/frydek_mistek
|
||||
data/system/de/berlin
|
||||
data/system/de/rostock
|
||||
|
12
importer/config/ch/zurich/center.poly
Normal file
12
importer/config/ch/zurich/center.poly
Normal file
@ -0,0 +1,12 @@
|
||||
boundary
|
||||
1
|
||||
8.520455 47.396229
|
||||
8.495264 47.3765
|
||||
8.51243 47.361327
|
||||
8.538008 47.356153
|
||||
8.55689 47.367315
|
||||
8.553543 47.387542
|
||||
8.545313 47.393547
|
||||
8.520455 47.396229
|
||||
END
|
||||
END
|
20
importer/config/ch/zurich/cfg.json
Normal file
20
importer/config/ch/zurich/cfg.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"osm_url": "http://download.geofabrik.de/europe/switzerland-latest.osm.pbf",
|
||||
"map_config": {
|
||||
"driving_side": "Right",
|
||||
"bikes_can_use_bus_lanes": true,
|
||||
"inferred_sidewalks": true,
|
||||
"street_parking_spot_length": 80000
|
||||
},
|
||||
"onstreet_parking": {
|
||||
"SomeAdditionalWhereNoData": {
|
||||
"pct": 50
|
||||
}
|
||||
},
|
||||
"public_offstreet_parking": "None",
|
||||
"private_offstreet_parking": {
|
||||
"FixedPerBldg": 10
|
||||
},
|
||||
"include_railroads": true,
|
||||
"extra_buildings": null
|
||||
}
|
13
importer/config/ch/zurich/east.poly
Normal file
13
importer/config/ch/zurich/east.poly
Normal file
@ -0,0 +1,13 @@
|
||||
boundary
|
||||
1
|
||||
8.557148 47.344232
|
||||
8.586245 47.352664
|
||||
8.608818 47.351966
|
||||
8.608732 47.369524
|
||||
8.573112 47.395096
|
||||
8.543329 47.397652
|
||||
8.528202 47.372126
|
||||
8.538222 47.362839
|
||||
8.557148 47.344232
|
||||
END
|
||||
END
|
13
importer/config/ch/zurich/north.poly
Normal file
13
importer/config/ch/zurich/north.poly
Normal file
@ -0,0 +1,13 @@
|
||||
boundary
|
||||
1
|
||||
8.587275 47.39312
|
||||
8.596115 47.410839
|
||||
8.577747 47.419551
|
||||
8.577833 47.426287
|
||||
8.550625 47.437841
|
||||
8.513678 47.406821
|
||||
8.528652 47.395328
|
||||
8.556376 47.392365
|
||||
8.587275 47.39312
|
||||
END
|
||||
END
|
15
importer/config/ch/zurich/south.poly
Normal file
15
importer/config/ch/zurich/south.poly
Normal file
@ -0,0 +1,15 @@
|
||||
boundary
|
||||
1
|
||||
8.542728 47.337543
|
||||
8.543158 47.363885
|
||||
8.542342 47.373768
|
||||
8.542578 47.377517
|
||||
8.51964 47.383823
|
||||
8.509083 47.375453
|
||||
8.501186 47.376558
|
||||
8.483677 47.369757
|
||||
8.508825 47.335565
|
||||
8.522558 47.332366
|
||||
8.542728 47.337543
|
||||
END
|
||||
END
|
15
importer/config/ch/zurich/west.poly
Normal file
15
importer/config/ch/zurich/west.poly
Normal file
@ -0,0 +1,15 @@
|
||||
boundary
|
||||
1
|
||||
8.51964 47.383823
|
||||
8.532949 47.380054
|
||||
8.543329 47.397652
|
||||
8.539467 47.404333
|
||||
8.528996 47.402474
|
||||
8.474751 47.417867
|
||||
8.460674 47.386961
|
||||
8.483677 47.369757
|
||||
8.501186 47.376558
|
||||
8.509083 47.375453
|
||||
8.51964 47.383823
|
||||
END
|
||||
END
|
@ -79,6 +79,14 @@ pub fn nice_map_name(name: &MapName) -> &str {
|
||||
("montreal", "plateau") => "Montréal (Plateau)",
|
||||
_ => &name.map,
|
||||
},
|
||||
"ch" => match (name.city.city.as_ref(), name.map.as_ref()) {
|
||||
("zurich", "center") => "Zürich (city center)",
|
||||
("zurich", "north") => "Zürich (north)",
|
||||
("zurich", "south") => "Zürich (south)",
|
||||
("zurich", "east") => "Zürich (east)",
|
||||
("zurich", "west") => "Zürich (west)",
|
||||
_ => &name.map,
|
||||
},
|
||||
"cz" => match (name.city.city.as_ref(), name.map.as_ref()) {
|
||||
("frytek_mistek", "huge") => "Frýdek-Místek (entire area)",
|
||||
_ => &name.map,
|
||||
|
Loading…
Reference in New Issue
Block a user