Options
All
  • Public
  • Public/Protected
  • All
Menu

Osservaprezzi carburanti node - v1.1.0

Osservaprezzi carburanti node

Npm version install size Support version GitHub top language GitHub license GitHub issues GitHub Workflow Status Github last commit

Osservaprezzi carburanti async/await axios API wrapper. Developed in TypeScript complete with documentation and typed interfaces for all API responses.

Getting started

Installation

Using npm:

$ npm install osservaprezzi-carburanti-node

or using yarn:

$ yarn add osservaprezzi-carburanti-node

Usage

import { FuelsApiClient } from 'osservaprezzi-carburanti-node'

const client = new FuelsApiClient();

(async () => {
const searchCriteria: SearchByZoneCriteria = {
points: [
{ lat: 42.32843626674558, lng: 12.188716303785915 },
{ lat: 42.389322963743865, lng: 12.37136400886404 },
{ lat: 42.31726730642802, lng: 12.44277514167654 },
],
fuelType: FuelType.ALL,
refuelingMode: RefuelingMode.ALL,
priceOrder: 'asc',
};

const searchResponse = await client.search.byZone(searchCriteria);

console.log(searchResponse);
})();

Licenses

This projected is licensed under the MIT license. For additional details see LICENSE.

Generated using TypeDoc