Public | Automated Build

Last pushed: 5 months ago
Short Description
Microservice for shortest path routing on Norwegian trails
Full Description

Microservice for shortest path routing on Norwegian trails using
pgRouting and waymarked
trails from the Norwegian Mapping Authority

The name Raidō means "ride, journey" in the runic alphabets is the reconstructed
Proto-Germanic name of the r- rune of the Elder Futhark ᚱ. The name is attested
for the same rune in all three rune poems, Old Norwegian Ræið Icelandic Reið,
Anglo-Saxon Rad.

ᚱ Ræið kveða rossom væsta;
Reginn sló sværðet bæzta.


GET /v1/routing

  • string cords - A to B coordinates on the format x1,y1,x2,y2
  • number sensitivity - routing sensitivity / buffer (default 2000)

Return the shortest path from coordinate A to coordinate B. Will return a
GeometryCollection if a route is found.


  "type": "GeometryCollection",
  "geometries": [{
    "type": "LineString",
    "coordinates": [...],
    "properties": {
      cost: 1510.05825002283

Route not found

If the point A or B can not be found or a route between them could not be
found the routing will return a LineString between the two points.

  "type": "LineString",
  "coordinates": [
    [ 8.922786712646484, 61.5062387475475 ],
    [ 8.97857666015625, 61.50984184413987 ]


docker run --name postgres turistforeningen/pgrouting-n50:latest
docker run --link postgres turistforeningen/raido:latest -p 8080



  • Docker 1.10+
  • Docker Compose v1.4+


docker-compose up


docker-compose run --rm node npm run test
docker-compose run --rm node npm run lint

MIT lisenced

Docker Pull Command
Source Repository

Comments (0)