{"repo":"paulmach/osm","free":true,"listed":false,"github":"https://github.com/paulmach/osm","clone":"git clone https://github.com/paulmach/osm.git","description":"General purpose library for reading, writing and working with OpenStreetMap data","language":"Go","stars":468,"topics":["golang","osm","openstreetmap","osmpbf","xml"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"osm This package is a general purpose library for reading, writing and working with OpenStreetMap data in Go (golang). It has the ability to: - read/write OSM XML - read/write OSM JSON, a format returned by the Overpass API. - efficiently parse OSM PBF data files available at planet.osm.org Made available by the package are the following types: - Node - Way - Relation - Changeset - Note - User And the following “container” types: - OSM - container returned via API - Change - used by the replication API - Diff - corresponds to Overpass Augmented Diffs List of sub-package utilities - annotate - adds lon/lat, version, changeset and orientation data to way and relation members - osmapi - supports all the v0.6 read/data endpoints - osmgeojson - OSM to GeoJSON conversion compatible with osmtogeojson - osmpbf - stream processing of .osm.pbf files - osmxml - stream processing of .osm xml files - replication - fetch replication state and change files Concepts This package refers to the core OSM data types as Objects . The Node, Way, Relation, Changeset, Note and User types implement the osm.Object interface and can be referenced using the osm.ObjectID type. As a result it is possible to have a slice of []osm.Object that contains nodes, changesets and users. Individual versions of the core OSM Map Data types are referred to as Elements and the set of versions for a give Node, Way or Relation is referred to as a Feature . For example, an osm.ElementID could refer to \"Node with id 10 and","default_branch":null,"files":null,"tree":[],"storefront":"/r/paulmach","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paulmach/osm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}