From 4bc2aae6bc8f8561ab0038d0e96369688bf52b4c Mon Sep 17 00:00:00 2001 From: sdirollo Date: Tue, 23 Jan 2024 17:11:12 +0100 Subject: [PATCH 1/2] add capital node --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c548534..559bf8a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,6 +37,9 @@ pub fn is_admin(obj: &OsmObj) -> bool { && rel.tags.get("admin_level").is_some() } + OsmObj::Node(ref node) => { + node.tags.get("capital").map_or(false, |v| v == "yes") + } _ => false, } } From 80285182bf3464c73fe203d1f9290a460390a926 Mon Sep 17 00:00:00 2001 From: sdirollo Date: Tue, 23 Jan 2024 17:12:16 +0100 Subject: [PATCH 2/2] add capital node --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39a9af0..52e500d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ The best way to explore the data (i.e. the coverage, the zones metadata, the hie You can build cosmogony to extract the regions on your own. - #### Build -Here are the necessary manual steps to build cosmogony: +Here are the necessary manual steps to build cosmogony : ```bash curl https://sh.rustup.rs -sSf | sh # intall rust apt-get install libgeos-dev # install GEOS