Skip to content

budziam/nalunch-sdk-js

Repository files navigation

NaLunch SDK JS CircleCI

SDK for developing application based on NaLunch provided data.

Usage

Chunks

NaLunch splits world map into cacheable fixed size chunks. Example usage below

const chunkCollectionStore = createChunkCollectionStore();

await chunkCollectionStore.load(
    {
        longitude: 50.50,
        latitude: 20.53,
    },
    moment(),
    5000,
);

console.log(chunkCollectionStore.lunchOffers);

Installation

yarn add nalunch-sdk
npm install nalunch-sdk

Run tests

All of the NaLunch SDK tests are written with jest. They can be run with yarn

yarn test