Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capital #165

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down
Loading