Osservaprezzi carburanti async/await axios API wrapper. Developed in TypeScript complete with documentation and typed interfaces for all API responses.
Using npm:
$ npm install osservaprezzi-carburanti-node
or using yarn:
$ yarn add osservaprezzi-carburanti-node
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);
})();
This projected is licensed under the MIT license. For additional details see LICENSE.
Generated using TypeDoc