0.3.0 • Published 12 months ago

@routingjs/ors v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

RoutingJS: ORS

Promise-based web client for OpenRouteService.

Example

import { ORS } from "@routingjs/ors"

const ors = new ORS({ apiKey: "my-api-key" }) // URL defaults to https://api.openrouteservice.org
ors.directions(
    [
        [8.512516, 47.380742],
        [8.557835, 47.359467],
    ],
    "driving-car"
).then((d) => {
    // do stuff with the directions response
    d.directions.forEach((direction) => {
        console.log(direction.feature)
    })
})

Installation

npm install @routingjs/ors

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

0.3.0

12 months ago

0.2.1

12 months ago

0.2.0

1 year ago

0.1.0

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago