Skip to content

nahiluhmot/gpx_directions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPX Directions

Turn a GPX file into human readable directions.

Requirements

  • Ruby 3.2.2 (with Bundler)
  • libbz2 (tested with 1.1.0)
  • sqlite >= 3.6.16 (tested with 3.42.0)

Development

Clone the repo:

$ git pull git@github.com:nahiluhmot/gpx_directions
$ cd gpx_directions

Install dependencies:

$ ./bin/setup

Import a map (download more from Geofabrik):

$ ./bin/seed_db ./gpx_directions.sqlite ./example/rhode-island-latest.osm.bz2

Generate directions (create your own at OnTheGoMap):

$ ./bin/directions ./gpx_directions.sqlite ./example/newport-middletown-loop-50km.gpx
Start at {lat: 41.496711, lon: -71.316834}
Continue on Farewell Street for 202m
Turn left onto Farewell Street
Continue on Farewell Street for 144m
Continue straight onto Farewell Street
Continue on Farewell Street for 10m
Take a sharp right onto Poplar Street
Continue on Poplar Street for 13m
Take a sharp right onto Thames Street
Continue on Thames Street for 311m
Continue straight onto Thames Street
Continue on Thames Street for 98m
...

About

Use Open Street Map to Power Turn-by-Turn Directions for On the Go Map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors