few adjustments to get Manhattan initially imported. not making

permanent yet
This commit is contained in:
Dustin Carlino 2020-05-18 11:42:44 -07:00
parent 41e80b48a1
commit 65a69612e0
4 changed files with 23 additions and 1 deletions

View File

@ -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 {

View File

@ -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')

View 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

View File

@ -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![