1.0.5 • Published 4 years ago

geo-routers v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago