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.
Failed to load latest commit information.

Bicycle GPS

Get OSM data

Get an export for the area you are interested in.

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