Skip to content

Commit

Permalink
Import a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Aug 29, 2023
1 parent e8acee6 commit 6adeb25
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 1 deletion.
5 changes: 4 additions & 1 deletion convert_osm/src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ pub fn extract_osm(
});

timer.start("find service roads crossing parking lots");
find_parking_aisles(map, &mut out.roads);
// TODO Something's crashing in one map, no time to investigate
if map.name != abstio::MapName::new("au", "melbourne", "maribyrnong") {
find_parking_aisles(map, &mut out.roads);
}
timer.stop("find service roads crossing parking lots");

Extract {
Expand Down
20 changes: 20 additions & 0 deletions data/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"uncompressed_size_bytes": 6607504,
"compressed_size_bytes": 1855060
},
"data/input/au/melbourne/raw_maps/maribyrnong.bin": {
"checksum": "b81ffefcdab40c2a9cf5062412ab73a7",
"uncompressed_size_bytes": 20233034,
"compressed_size_bytes": 5508165
},
"data/input/br/sao_paulo/gtfs/agency.txt": {
"checksum": "3dd694b14c7bacfa33d8ad774db99100",
"uncompressed_size_bytes": 155,
Expand Down Expand Up @@ -405,6 +410,11 @@
"uncompressed_size_bytes": 74318691,
"compressed_size_bytes": 19050531
},
"data/input/gb/bristol/raw_maps/south.bin": {
"checksum": "2ff63d09b50d76a744ad743f896c0f1d",
"uncompressed_size_bytes": 12921184,
"compressed_size_bytes": 3442421
},
"data/input/gb/burnley/raw_maps/center.bin": {
"checksum": "4776145cb655fdf66508b90e1f867024",
"uncompressed_size_bytes": 5944310,
Expand Down Expand Up @@ -2065,6 +2075,11 @@
"uncompressed_size_bytes": 25615734,
"compressed_size_bytes": 9996160
},
"data/system/au/melbourne/maps/maribyrnong.bin": {
"checksum": "1f5cd5b6e7eea0e7d288ad3196182877",
"uncompressed_size_bytes": 74409264,
"compressed_size_bytes": 28775907
},
"data/system/br/sao_paulo/maps/aricanduva.bin": {
"checksum": "729f76e7a82b057c2a4257a17fbea421",
"uncompressed_size_bytes": 49393386,
Expand Down Expand Up @@ -2495,6 +2510,11 @@
"uncompressed_size_bytes": 160848778,
"compressed_size_bytes": 64278768
},
"data/system/gb/bristol/maps/south.bin": {
"checksum": "b5989cedce214867404fc79fab931c0c",
"uncompressed_size_bytes": 30541056,
"compressed_size_bytes": 11838753
},
"data/system/gb/bristol/scenarios/east/background.bin": {
"checksum": "0478813351ebf6fec0f004e87fc09b69",
"uncompressed_size_bytes": 8868841,
Expand Down
36 changes: 36 additions & 0 deletions importer/config/au/melbourne/maribyrnong.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
[
144.82131350593255,
-37.747288068173866
],
[
144.82131350593255,
-37.83633025453211
],
[
144.9244578088135,
-37.83633025453211
],
[
144.9244578088135,
-37.747288068173866
],
[
144.82131350593255,
-37.747288068173866
]
]
],
"type": "Polygon"
}
}
]
}
48 changes: 48 additions & 0 deletions importer/config/gb/bristol/south.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
[
-2.600577249284896,
51.451032518032264
],
[
-2.633572101957185,
51.450082171004766
],
[
-2.6484059222757708,
51.4317625272393
],
[
-2.633572101957185,
51.409025585927225
],
[
-2.5826934846017195,
51.4130032055246
],
[
-2.539716995826865,
51.43426895009773
],
[
-2.5722959469947284,
51.44818141760368
],
[
-2.600577249284896,
51.451032518032264
]
]
],
"type": "Polygon"
}
}
]
}
2 changes: 2 additions & 0 deletions map_gui/src/tools/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ pub fn nice_map_name(name: &MapName) -> &str {
"au" => match (name.city.city.as_ref(), name.map.as_ref()) {
("melbourne", "brunswick") => "Melbourne (Brunswick)",
("melbourne", "dandenong") => "Melbourne (Dandenong)",
("melbourne", "maribyrnong") => "Melbourne (Maribyrnong)",
_ => &name.map,
},
"at" => match (name.city.city.as_ref(), name.map.as_ref()) {
Expand Down Expand Up @@ -171,6 +172,7 @@ pub fn nice_map_name(name: &MapName) -> &str {
("brighton", "center") => "Brighton",
("brighton", "shoreham_by_sea") => "Shoreham-by-Sea",
("bristol", "east") => "East Bristol",
("bristol", "south") => "South Bristol",
("burnley", "center") => "Burnley",
("cambridge", "north") => "North Cambridge",
("castlemead", "center") => "Castlemead",
Expand Down

0 comments on commit 6adeb25

Please sign in to comment.