Wmo & Co
 
tool osm
20150625

A new tool for your toolbox : grob

Ever wanted to grep an OSM protobuffer file for a waypoint ? Grob will do that for you!

It is also possible to grep within a certain radius of a waypoint...

Example

Use case: you want to eat a pizza close to Checkpoint Charlie in Berlin.

Step 1: Locate checkpoint charlie in the Berlin osm protobuffer file:

grob berlin-latest.osm.pbf "checkpoint charlie"

..
52.507546, 13.390361,  name:Checkpoint Charlie name:ko:체크포인트 찰리 ..
..

Step 2: Check within a radius of 0.5 km of waypoint 52.507546 13.390361 for pizza

grob berlin-latest.osm.pbf -d 0.5 52.507546 13.390361 pizza

52.505250, 13.393108,  name:Charlotte 1 amenity:restaurant cuisine:italian..
52.506928, 13.392213,  name:Pizza amenity:fast_food #,0.14
52.506916, 13.395269,  addr:housenumber:9 name:Pepe Pizza amenity:fast_foo..
 
Notes by Willem Moors. Generated on nini:/home/willem/sync/20140923_blog at 2018-06-16 11:17