{"id":16897679,"url":"https://github.com/texitoi/osmpbfreader-rs","last_synced_at":"2025-05-15T18:00:20.133Z","repository":{"id":23568364,"uuid":"26936149","full_name":"TeXitoi/osmpbfreader-rs","owner":"TeXitoi","description":"Read OpenStreetMap PBF files in rust.","archived":false,"fork":false,"pushed_at":"2025-04-09T17:22:31.000Z","size":291,"stargazers_count":121,"open_issues_count":4,"forks_count":29,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-15T00:14:37.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeXitoi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-20T23:04:53.000Z","updated_at":"2025-05-13T08:58:40.000Z","dependencies_parsed_at":"2025-04-11T22:33:41.282Z","dependency_job_id":null,"html_url":"https://github.com/TeXitoi/osmpbfreader-rs","commit_stats":{"total_commits":187,"total_committers":19,"mean_commits":9.842105263157896,"dds":"0.17647058823529416","last_synced_commit":"715dc4d8bfd4e954f1819c2567ce5cd777a2bf54"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fosmpbfreader-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fosmpbfreader-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fosmpbfreader-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fosmpbfreader-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeXitoi","download_url":"https://codeload.github.com/TeXitoi/osmpbfreader-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394718,"owners_count":22063984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T17:39:16.736Z","updated_at":"2025-05-15T18:00:19.959Z","avatar_url":"https://github.com/TeXitoi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osmpbfreader-rs [![](https://img.shields.io/crates/v/osmpbfreader.svg)](https://crates.io/crates/osmpbfreader) [![](https://docs.rs/osmpbfreader/badge.svg)](https://docs.rs/osmpbfreader)\n\nRead [OpenStreetMap PBF\nfiles](http://wiki.openstreetmap.org/wiki/PBF_Format) with\n[rust](http://www.rust-lang.org) in an easy and effective way.\nThe main inspiration of this library is\n[libosmpbfreader](https://github.com/CanalTP/libosmpbfreader).\n\n## Documentation\n\nFind it on [Docs.rs](https://docs.rs/osmpbfreader)\n\n## Using this lib\n\nThis crate works with Cargo and is on\n[crates.io](https://crates.io/crates/osmpbfreader). The package is regularly\nupdated.\n\nFor complete example, you can see the [examples](examples/).\n\nYou can find OSM PBF files at [Geofabrik's free download server](http://download.geofabrik.de/).\n\n## Performances\n\nUsing the different examples compiled in release mode:\n```\n$ grep CPU /proc/cpuinfo | uniq -c\n      8 model name\t: Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz\n$ rustc --version\nrustc 1.14.0 (e8a012324 2016-12-16)\n$ ls -sh france-latest.osm.pbf\n3,3G france-latest.osm.pbf\n$ time ./target/release/examples/tutorial france-latest.osm.pbf\n416483839 objects in \"france-latest.osm.pbf\"\n\nreal\t4m24.784s\nuser\t4m18.476s\nsys\t0m6.164s\n$ time ./target/release/examples/count france-latest.osm.pbf admin_level 8\ncounting objects with tags[\"admin_level\"] = \"8\"...\n53 nodes, mean coord: 46.25862766415095, 2.9082348867924517.\n108190 ways, mean |nodes|: 72.09304926518162\n35984 relations, mean |references|: 8.705369052912406\n\nreal\t1m10.117s\nuser\t8m16.164s\nsys\t0m23.120s\n$ time ./target/release/examples/count_with_deps france-latest.osm.pbf admin_level 8\ncounting objects with tags[\"admin_level\"] = \"8\" and their depedencies...\n9497221 nodes, mean coord: 46.69071931974348, 2.2632424769587915.\n136950 ways, mean |nodes|: 70.35282949981745\n36408 relations, mean |references|: 8.771121731487586\n\nreal\t5m9.814s\nuser\t33m52.820s\nsys\t0m28.624s\n```\n\n## License\n\nThis work is free. You can redistribute it and/or modify it under the\nterms of the Do What The Fuck You Want To Public License, Version 2,\nas published by Sam Hocevar. See the COPYING file for more details.\n\nNote that `protos/fileformat.proto` and `protos/osmformat.proto` come from\n[OSM-binary](https://github.com/scrosby/OSM-binary) under the MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexitoi%2Fosmpbfreader-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftexitoi%2Fosmpbfreader-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexitoi%2Fosmpbfreader-rs/lists"}