An Erlang geo-routing system based on OpenStreetMap data which provides an HTTP-API.
Get the current source from https://github.com/livelycode/routing.
- Download Erlang/OTP R14B03 at http://www.erlang.org/download.html.
- Unpack the download.
- Now cd into the base dir.
####Build
$ ./configure
$ make
####Install
$ make install
$ git clone https://github.com/willemdj/erlsom.git
$ cd erlsom
$ make
Move folder to erlang path.
$ git clone https://github.com/mochi/mochiweb.git
$ cd mochiweb
$ make
Move folder to erlang path.
$ cd routing/ebin
$ erl -compile ../src/*.erl
Make sure you are in the ebin directory.
$ erl
$ routing:load_osm_data("/path/to/your/osm/file.osm").
$ routing:start().
$ routing:stop().