Skip to content

The Open Source Routing Machine bindings wrapper for NodeJS

License

Notifications You must be signed in to change notification settings

urbica/osrm-bindings

Repository files navigation

osrm-bindings

Build Status

Extract and contract OSRM graph using NodeJS.

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)
);

About

The Open Source Routing Machine bindings wrapper for NodeJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published