https://github.com/midzer/pbf2md
Parse OpenStreetMap *.pbf files and convert specific entries to markdown files
https://github.com/midzer/pbf2md
markdown osm pbf
Last synced: 4 months ago
JSON representation
Parse OpenStreetMap *.pbf files and convert specific entries to markdown files
- Host: GitHub
- URL: https://github.com/midzer/pbf2md
- Owner: midzer
- Created: 2020-03-18T19:53:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T14:18:25.000Z (over 1 year ago)
- Last Synced: 2025-03-13T05:33:11.018Z (about 1 year ago)
- Topics: markdown, osm, pbf
- Language: Go
- Homepage:
- Size: 2.67 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pbf2md
Parse OpenStreetMap *.pbf files and convert specific entries to markdown files
## Getting Started
* download and set up Go: see https://golang.org/doc/install
* clone this repository
* download required packages: `go get -v github.com/qedus/osmpbf github.com/gosimple/slug`
* build: `go build`
* download OSM data:
```bash
for prefix in "austria" "germany/baden-wuerttemberg" "germany/bayern" "germany/brandenburg" "germany/bremen" "germany/hamburg" "germany/hessen" "germany/mecklenburg-vorpommern" "germany/niedersachsen" "germany/nordrhein-westfalen" "germany/rheinland-pfalz" "germany/saarland" "germany/sachsen-anhalt" "germany/sachsen" "germany/schleswig-holstein" "switzerland" "germany/thueringen"; do
wget "https://download.geofabrik.de/europe/$prefix-latest.osm.pbf";
done
```
* for a more simple start, you can also download a single sub-region file from https://download.geofabrik.de/index.html (make sure to get the .osm.pbf format) and then change the `regions` list in `pbf2md.go` source code to your downloaded .osm.pbf file, and re-run `go build`.
* run conversion: `./pbf2md`
* the converted data will be put into a subdirectory for each region