{"id":20435456,"url":"https://github.com/vetinari/osm","last_synced_at":"2026-05-10T15:40:32.225Z","repository":{"id":35035764,"uuid":"39151965","full_name":"vetinari/osm","owner":"vetinari","description":"go package used to parse OpenStreetMap files and manipulate the data","archived":false,"fork":false,"pushed_at":"2015-07-19T10:14:21.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T19:36:17.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vetinari.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}},"created_at":"2015-07-15T17:52:27.000Z","updated_at":"2015-07-15T17:54:33.000Z","dependencies_parsed_at":"2022-09-16T00:12:23.248Z","dependency_job_id":null,"html_url":"https://github.com/vetinari/osm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetinari%2Fosm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetinari%2Fosm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetinari%2Fosm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetinari%2Fosm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vetinari","download_url":"https://codeload.github.com/vetinari/osm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241982477,"owners_count":20052529,"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-11-15T08:34:28.483Z","updated_at":"2026-05-10T15:40:27.202Z","avatar_url":"https://github.com/vetinari.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nosm\n===\n\nThe osm package is used to parse OpenStreetMap files and manipulate the data\n\n## Installation\n\n```bash\n$ go get github.com/vetinari/osm\n```\n\n## Usage\n\nYet another pbf to osm xml converter:\n```Go\n    package main\n\n    import (\n        \"fmt\"\n        \"os\"\n        \"github.com/vetinari/osm\"\n        \"github.com/vetinari/osm/pbf\"\n        \"github.com/vetinari/osm/xml\"\n    )\n\n    func main() {\n        if len(os.Args) != 2 {\n            fmt.Fprintf(os.Stderr, \"%s: Usage: %s PBF_FILE\\n\", os.Args[0], os.Args[0])\n            os.Exit(1)\n        }\n\n        fh, err := os.Open(os.Args[1])\n        if err != nil {\n            fmt.Fprintf(os.Stderr, \"%s: failed to open %s: %s\\n\", os.Args[0], os.Args[1], err)\n            os.Exit(1)\n        }\n        defer fh.Close()\n\n        o, err := osm.New(pbf.Parser(fh))\n        if err != nil {\n            fmt.Fprintf(os.Stderr, \"%s: failed to parse %s: %s\\n\", os.Args[0], os.Args[1], err)\n            os.Exit(1)\n        }\n\n        xml.Dump(os.Stdout, o)\n    }\n```\n\n## Documentation\n\nhttp://godoc.org/github.com/vetinari/osm\n\n## Help\n\npull requests welcome :-)\n\n## To Do\n\n- More documentation ;-)\n- tests\n- import \"log\" \u0026 debug level / debug\n- don't write/dump deleted items unless explicitly requested\n- download / parse from osm.org API\n- merge 2 or more *osm.OSM into one\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvetinari%2Fosm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvetinari%2Fosm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvetinari%2Fosm/lists"}