Fix a bug in the UI importer that happens the first time you run it.
@@ -49,7 +49,9 @@ async fn main() -> Result<()> {
.arg("boundary0.poly")
.output()?;
assert!(out.status.success());
- String::from_utf8(out.stdout)?
+ // pick_geofabrik might output extra lines while downloading the index. Grab the last line.
+ let output = String::from_utf8(out.stdout)?;
+ output.trim().split("\n").last().unwrap().trim().to_string()
};
// Name the temporary map based on the Geofabrik region.
