1.2.0 • Published 5 years ago

osrm-bindings v1.2.0

Weekly downloads
8
License
BSD-2-Clause
Repository
github
Last release
5 years ago

osrm-bindings

Build Status Greenkeeper badge

Extract and contract OSRM graph using NodeJS.

npm.io

Installation

npm i osrm osrm-bindings

Usage

Extract and contract OSRM graph

const path = require("path");
const { extract, contract } = require("osrm-bindings");

const extractPath = path.join(__dirname, "data.osm");
const profileName = "car";

const options = {
  stdoutStream: process.stdout,
  stderrStream: process.stderr
};

extract(extractPath, profileName, options).then(graphPath =>
  contract(graphPath, options)
);
1.2.0

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago