{"repo":"codesoap/osmar","free":true,"listed":false,"github":"https://github.com/codesoap/osmar","clone":"git clone https://github.com/codesoap/osmar.git","description":"A simple command line tool to explore OSM data","language":"Go","stars":133,"topics":["osm","cli","pbf"],"license":"MIT","category":"cli-tools","readme_excerpt":"A small tool for querying OSM data from PBF files. Installation You can download the tool from the releases page: https://github.com/codesoap/osmar/releases If you have the Go toolchain installed and prefer to build osmar yourself, you can get it by running this: Basic Usage Before you can use osmar, you must set the environment variable OSMAR PBF FILE ; it must contain the path to a PBF file. These files can be downloaded, for example, from download.geofabrik.de. An example would be: More Examples You can find the documentation on all available tags at wiki.openstreetmap.org/wiki/Map Features. Here are a few more examples: Performance Because osmar is parsing compressed PBF files on the fly, performance is somewhat limited, but should be good enough for a few queries now and then. Try to use the smallest extract that is available for your area. The performance can be improved slightly by converting PBF files to zstd compression with the zstd-pbf tool. Here are some quick measurements; better results will probably be achieved with more modern hardware: PBF file Query CPU Runtime RAM usage --- --- --- --- --- bremen-latest.osm.pbf (19.3MiB) osmar 53.076 8.807 50 'shop= ' i5-8250U (4x1.6GHz) 0.24s 65MiB bremen-latest.osm.pbf (19.3MiB) osmar 53.076 8.807 50 'shop= ' AMD Ryzen 5 3600 (6x4.2GHz) 0.10s 125MiB bremen-latest.zstd.osm.pbf (19.4MiB) osmar 53.076 8.807 50 'shop= ' i5-8250U (4x1.6GHz) 0.20s 70MiB bremen-latest.zstd.osm.pbf (19.4MiB) osmar 53.076 8.807 50 'shop= ' AMD Ryz","default_branch":null,"files":null,"tree":[],"storefront":"/r/codesoap","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codesoap/osmar/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."}