GPS navigation for my bicycle
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bicycle_gps
rtree
readme.md

readme.md

Bicycle GPS

Get OSM data

Get an export for the area you are interested in. http://download.geofabrik.de/

Install Postgres and Osmosis. Import the data with pgsnapshot.

$ createdb osmosis
$ psql osmosis
> create extension hstore;
> create extension postgis;
$ psql osmosis < /usr/share/osmosis/script/pgsnapshot_schema_0.6.sql
$ psql osmosis < /usr/share/osmosis/script/pgsnapshot_schema_0.6_bbox.sql
$ osmosis --read-pbf ~/netherlands-latest.osm.pbf --tf accept-ways highway=* --used-node --bounding-box --write-pgsql database=osmosis