onwater

1.0.0 • Public • Published

OnWater

Build Status

This is a simple API client that queries and returns results from onwater.io.

Usage

See example.js for more details.

const OnWater = require('onwater');

const apiKey = 'your-api-key';
const onWater = new OnWater(apiKey);

const lat = 40.70736894164633;
const lng = -73.97963314829899;

await onWater.results(lat, lng);

API

All methods return a promise. lat and lng should be floating point values of coordinates.

  • .results(lat, lng) - returns raw results from onwater.io
  • .isWater(lat, lng) - yields water which is a boolean from results.

Package Sidebar

Install

npm i onwater

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.66 kB

Total Files

7

Last publish

Collaborators

  • excellent