We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611f260 commit b77801fCopy full SHA for b77801f
src/lib.rs
@@ -58,7 +58,7 @@ pub fn get_zones_and_stats(
58
let mut zones = Vec::with_capacity(1000);
59
60
for obj in pbf.values() {
61
- if !is_admin(obj) {
+ if !is_admin(obj) && !obj.tags().get("place").map_or(false, |v| v == "suburb") {
62
continue;
63
}
64
if let OsmObj::Relation(ref relation) = *obj {
@@ -70,6 +70,13 @@ pub fn get_zones_and_stats(
70
71
};
72
73
+ if let OsmObj::Node(ref node) = *obj {
74
+ let next_index = ZoneIndex { index: zones.len() };
75
+ if let Some(zone) = Zone::from_osm_node(node, next_index) {
76
+ // Ignore zone without boundary polygon for the moment
77
+ zones.push(zone);
78
+ };
79
+ }
80
81
82
Ok((zones, stats))
0 commit comments