air-thai-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

AIR THAI

Check the weather based on location, specify location values with latitude and longitude.

Preparation

node version above 10

Installation

 
npm install air-thai-api

Usage

 
import * as AirThai from "air-thai-api"
 
interface input = {
  lat: number
  long: number
}
 
const location:input = {
  lat: 14.026564760517724,
  long: 100.61505110969684
}
 
AirThai(location).then((data) => {
  console.log('data', data)
})
 
const { AirThai } = require("air-thai-api")
 
const result = await AirThai({ lat: 13.670809600000002, long: 100.6501888 })
 

Reference

รายงานสถานการณ์และคุณภาพอากาศประเทศไทย

Readme

Keywords

Package Sidebar

Install

npm i air-thai-api

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

9.63 kB

Total Files

20

Last publish

Collaborators

  • olustrrax