libosmium

Fast C++ library for parsing and processing OpenStreetMap data

brewmacoslinux
Try with needOr install directly
Source

About

Fast and flexible C++ library for working with OpenStreetMap data

Examples

read and parse openstreetmap pbf files$ libosmium is a library, not a CLI tool. Use it in C++ code: #include <osmium/io/pbf_input.hpp>
filter openstreetmap data by tags and geometry$ Link against libosmium in your C++ project with: g++ -std=c++11 program.cpp -losmium
extract nodes ways and relations from osm data$ See osmium-tool package for CLI commands, or use libosmium as a C++ dependency for custom processing
convert openstreetmap formats efficiently$ Use with osmium-tool: brew install osmium-tool (which depends on libosmium)
build fast geospatial analysis tools for map data$ Include libosmium headers and link library in your C++ application for OSM data processing