Socket
Socket
Sign inDemoInstall

@routingjs/osrm

Package Overview
Dependencies
15
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @routingjs/osrm

RoutingJS OSRM Module


Version published
Maintainers
1
Install size
2.67 MB
Created

Readme

Source

RoutingJS: OSRM

Promise-based web client for the Open Source Routing Machine.

Example

import { OSRM } from "@routingjs/osrm"

const osrm = new OSRM() // URL defaults to https://routing.openstreetmap.de/routed-bike
osrm.directions([
    [8.512516, 47.380742],
    [8.557835, 47.359467],
]).then((d) => {
    // do stuff with the directions response
    d.directions.forEach((direction) => {
        console.log(direction.feature)
    })
})

Installation

npm install @routingjs/osrm

This package is part of the RoutingJS project, which aims to provide consistent access to various vehicle routing APIs.

Keywords

FAQs

Last updated on 06 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc