Wmo & Co | |||
Latest All — By Topic 2018 2017 2016 2015 2014 Topics:
achterhoek biltong brx byebyespotify diskdrive entitlement exception festival flagey heaven hello hot jubelpark juice keybase_io keyboard life link luangwa milestone mizuno moss naming parallel_prog printer priot python quote r4 recycle risotto running shinrinyoku skin sneeze steps summer taman_negara tandy tool trap trustpilot utah vivofit waypoints winter Tags:
achterhoek activity biking biltong blackbird brx byebyespotify cuda diskdrive dotmatrix encryption entitlement exception festival fingerprinting flagey game goodbye heaven hello hot jubelpark juice keybase_io keyboard life link luangwa milestone mizuno mooc moss naming open_cl osm parallel_prog pic printer priot python quote r4 rainforest recycle risotto running servers shinrinyoku shoe skin sneeze steps summer taman_negara tandy tool trap trust trustpilot utah velo vivofit waypoints winter |
waypoints
20141203
Pulling waypoints from an OpenStreetmap .OSM fileBefore going on holiday, I like to gather the OpenStreetMap waypoints for the area I'll be staying at. This is the process. Download an .osm fileEg. pick one from download.geofabrik.de Pull out all the nodes of the area of interestThe area is determined by lat,lon coordinates and the distance from this point. Eg. pulling data from the central-america .osm file, in radius of 10k around Willemstad, Curacao:
Source code for pull.go on github. Post-processSubsetting, selecting, etc.. using Python Pandas Read the .csv file in Pandas (in an ipython session) :
Sort according to distance, and convert tags to lowercase:
Subset the restaurants
Now give me the chinese restaurants
See more detail (plus the source code) at github.com/wmo/pull_osm_nodes ῶ |