New Prague, Minnesota

    osrm-bindings

    1.2.0 • Public • Published

    osrm-bindings

    Build Status Greenkeeper badge

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

    Install

    npm i osrm-bindings

    DownloadsWeekly Downloads

    14

    Version

    1.2.0

    License

    BSD-2-Clause

    Unpacked Size

    212 kB

    Total Files

    10

    Last publish

    Collaborators

    • boyur
    • device25
    • karmatsky
    • stepankuzmin