Pbf2sqlite: Reading OpenStreetMap into a SQLite Database
pbf2sqlite A simple command line tool for reading OpenStreetMap .osm.pbf files into a SQLite database. Usage: pbf2sqlite DATABASE [OPTION ...] Options: read FILE Reads .osm or .osm.pbf FILE into the database rtree Add R*Tree indexes addr Add address tables graph Add graph table The command pbf2sqlite test.db read country.osm.pbf reads the OSM PBF file country.osm.pbf and creates in the database test.db the tables. OSM data can be obtained from a provider such as Geofabrik.