mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-30 18:24:04 +03:00
few adjustments to get Manhattan initially imported. not making
permanent yet
This commit is contained in:
parent
41e80b48a1
commit
65a69612e0
@ -341,6 +341,9 @@ pub fn extract_osm(
|
||||
shop.clone(),
|
||||
));
|
||||
}
|
||||
if pts.len() < 3 {
|
||||
continue;
|
||||
}
|
||||
map.buildings.insert(
|
||||
OriginalBuilding { osm_way_id: rel.id },
|
||||
RawBuilding {
|
||||
|
@ -50,5 +50,9 @@ coordinates = [
|
||||
47.718885924932174
|
||||
]
|
||||
]
|
||||
print('map_name')
|
||||
print('1')
|
||||
for (x, y) in coordinates:
|
||||
print(' {} {}'.format(x, y))
|
||||
print('END')
|
||||
print('END')
|
||||
|
15
data/other_polygons/manhattan.poly
Normal file
15
data/other_polygons/manhattan.poly
Normal file
@ -0,0 +1,15 @@
|
||||
manhattan
|
||||
1
|
||||
-74.02373313903809 40.69625781921317
|
||||
-74.01025772094727 40.699218658976555
|
||||
-73.99995803833008 40.703122861875606
|
||||
-73.9739513397217 40.7105727473657
|
||||
-73.96159172058105 40.7519385984599
|
||||
-73.9400053024292 40.77612179824107
|
||||
-73.94030570983887 40.78057392807732
|
||||
-73.93798828125 40.78483079505022
|
||||
-73.96742820739748 40.822383381646446
|
||||
-74.01686668395996 40.75219867966512
|
||||
-74.02373313903809 40.69625781921317
|
||||
END
|
||||
END
|
@ -216,7 +216,7 @@ impl Lane {
|
||||
Some(
|
||||
part.split(';')
|
||||
.flat_map(|s| match s {
|
||||
"left" => vec![TurnType::Left],
|
||||
"left" | "left\\left" => vec![TurnType::Left],
|
||||
"right" => vec![TurnType::Right],
|
||||
// TODO What is blank supposed to mean? From few observed cases, same as through
|
||||
"through" | "" => vec![
|
||||
|
Loading…
Reference in New Issue
Block a user