geo-routers

    1.0.5 • Public • Published

    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)

    Install

    npm i geo-routers

    DownloadsWeekly Downloads

    0

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    3.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • elgin