https://github.com/systemed/intersector
Find road junctions in an .osm.pbf file.
https://github.com/systemed/intersector
Last synced: about 1 year ago
JSON representation
Find road junctions in an .osm.pbf file.
- Host: GitHub
- URL: https://github.com/systemed/intersector
- Owner: systemed
- Created: 2016-01-05T17:44:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-25T08:39:34.000Z (about 10 years ago)
- Last Synced: 2025-01-31T12:49:45.042Z (over 1 year ago)
- Language: C++
- Size: 34.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Intersector
===========
A simple C++ utility to create a CSV listing junctions found in an .osm.pbf file.
A junction is any node with more than two highways calling at it. By default motorable highways, cycleways and pedestrian ways are considered, but you can trivially patch the code for different highway values. The CSV columns are lat, lon, and roads (a series of numeric characters representing the road types).
Building and running
--------------------
On OS X:
clang++ -o intersector osmformat.pb.cc intersector.cpp -std=c++11 -lz `pkg-config --cflags --libs protobuf`
Requires the Google protobuf library (`brew install protobuf`).
Then simply run with
./intersector extract_name.osm.pbf
Output goes to junctions.csv.