air-thai-api
Version:
Find PM2.5 around us
44 lines (31 loc) • 783 B
Markdown
Check the weather based on location, specify location values with latitude and longitude.
```bash
node version above 10
```
```bash
npm install air-thai-api
```
```typescript
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)
})
```
```javascript
const { AirThai } = require("air-thai-api")
const result = await AirThai({ lat: 13.670809600000002, long: 100.6501888 })
```
[รายงานสถานการณ์และคุณภาพอากาศประเทศไทย](http://air4thai.pcd.go.th/webV2/)