Socket
Book a DemoInstallSign in
Socket

@routingjs/valhalla

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@routingjs/valhalla

RoutingJS Valhalla Module

0.3.0
latest
Source
npmnpm
Version published
Weekly downloads
823
-15.07%
Maintainers
0
Weekly downloads
 
Created
Source

RoutingJS: Valhalla

Promise-based web client for the Valhalla Open Source Routing Engine.

Example

import { Valhalla } from "@routingjs/valhalla"

const v = new Valhalla() // URL defaults to http://valhalla1.openstreetmap.de
v.directions(
    [
        [8.512516, 47.380742],
        [8.557835, 47.359467],
    ],
    "auto"
).then((d) => {
    // do stuff with the directions response
    d.directions.forEach((direction) => {
        console.log(direction.feature)
    })
})

Installation

npm install @routingjs/valhalla

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

Keywords

routing

FAQs

Package last updated on 23 Jul 2024

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.