Skip to content

systemed/intersector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Find road junctions in an .osm.pbf file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages