ReadOSM is an open source library to extract valid data from within
an Open Street Map input file. It supports both .osm and .osm.pbf
formats.
Project homepage: https://www.gaia-gis.it/fossil/readosm/index