geo-routers
v1.0.5
Published
A set of geo routers
Downloads
2
Readme
Geo Routers
Install
$ npm install geo-routers
Usage
import { load } from 'geo-routers';
load('yandex', { yMapsApiKey: '<YOUR-API-KEY>' }).then((geoRouter) => {
geoRouter.getRawRouteData(
{ lat: 55.654884, lon: 37.527034 },
{ lat: 55.767305, lon: 37.976100 },
).then((routeData) => {
console.log(geoRouter.parseRouteData(routeData));
});
});
Supported Routers
- Sputnik (
sputnik
) - Yandex (
yandex
)