{"id":15058894,"url":"https://github.com/osmzoso/pbf2sqlite","last_synced_at":"2026-01-18T03:58:36.792Z","repository":{"id":237257042,"uuid":"794142891","full_name":"osmzoso/pbf2sqlite","owner":"osmzoso","description":"Read OpenStreetMap .osm.pbf files into a SQLite database","archived":false,"fork":false,"pushed_at":"2025-06-06T20:47:13.000Z","size":61,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T21:38:17.295Z","etag":null,"topics":["openstreetmap","osm","pbf","sqlite"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osmzoso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-30T14:34:20.000Z","updated_at":"2025-06-06T20:47:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"07cdb2ac-a496-4d7a-98f0-0f3efb0fd54a","html_url":"https://github.com/osmzoso/pbf2sqlite","commit_stats":null,"previous_names":["osmzoso/pbf2sqlite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osmzoso/pbf2sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmzoso%2Fpbf2sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmzoso%2Fpbf2sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmzoso%2Fpbf2sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmzoso%2Fpbf2sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmzoso","download_url":"https://codeload.github.com/osmzoso/pbf2sqlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmzoso%2Fpbf2sqlite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259890446,"owners_count":22927373,"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":["openstreetmap","osm","pbf","sqlite"],"created_at":"2024-09-24T22:32:30.680Z","updated_at":"2026-01-18T03:58:36.785Z","avatar_url":"https://github.com/osmzoso.png","language":"C","readme":"# pbf2sqlite\n\nA simple command line tool for importing OpenStreetMap\n[PBF](https://wiki.openstreetmap.org/wiki/PBF_Format)\nor\n[XML](https://wiki.openstreetmap.org/wiki/OSM_XML)\nfiles into a SQLite database.\n\n```\nUsage:\npbf2sqlite DATABASE [OPTION ...]\n\nMain options:\n  read FILE     Reads FILE (.osm.pbf or .osm) into the database\n  index         Add basic indexes\n  rtree         Add R*Tree indexes\n  addr          Add address tables\n  graph         Add graph tables\n\nShow data:\n  node ID                                 Show node data\n  way ID                                  Show way data\n  relation ID                             Show relation data\n  vaddr  LON1 LAT1 LON2 LAT2 HTMLFILE     Visualize address data\n  vgraph LON1 LAT1 LON2 LAT2 HTMLFILE     Visualize graph data\n  sql STATEMENT                           Execute SQL statement\n\nFind shortest way:\n  route LON_START LAT_START LON_DEST LAT_DEST PERMIT FILE\n  (PERMIT: 'foot', 'bike' or 'car')\n```\n\nThe command\n```\npbf2sqlite test.db read country.osm.pbf\n```\nreads the [OSM PBF](https://wiki.openstreetmap.org/wiki/PBF_Format) file **country.osm.pbf**\nand creates in the database **test.db** the tables.\n\nThe tables created are described in the [documentation](doc/pbf2sqlite.md).\n\nOSM data can be obtained from a provider such as [Geofabrik](https://download.geofabrik.de).\n\nThe **vgraph** option creates a zoomable map of the graph:  \n\n![Example vgraph](doc/vgraph.png)\n\nThe **vaddr** option creates a zoomable map of the addresses:  \n\n![Example vaddr](doc/vaddr.png)\n\nThe [SQLite](https://www.sqlite.org) and the [readosm](https://www.gaia-gis.it/fossil/readosm/index)\nlibraries are used for this program.\n\nSee also notes on [compilation](doc/compiling.md).\n\n|[**Download the latest version**](https://github.com/osmzoso/pbf2sqlite/releases/latest)|\n|----------------------------------------------------------------------------------------|\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmzoso%2Fpbf2sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmzoso%2Fpbf2sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmzoso%2Fpbf2sqlite/lists"}