mywx_states: Retrieve valid geopolitical entities (location)

Description Usage Arguments Details Note References Examples

Description

Endpoint data relies on passing a locationid. These functions can be uses to obtain a lookup table of valid loations and ids.

Usage

1
2
3
4
5
6
7
mywx_states(mywx_api_token = Sys.getenv("MYWX_TOKEN"))

mywx_districts(mywx_api_token = Sys.getenv("MYWX_TOKEN"))

mywx_towns(mywx_api_token = Sys.getenv("MYWX_TOKEN"))

mywx_touristdests(mywx_api_token = Sys.getenv("MYWX_TOKEN"))

Arguments

mywx_api_token

MET API token

Details

You need a valid token either passed in to mywx_api_token or stored in the MYWX_TOKEN environment variable, preferably in ~/.Renviron.

Note

Maximum burst requests is 10 per minute and maximum sustained requests is 1,000 per day.

References

https://api.met.gov.my/dashboard/docs

Examples

1
2
3
4
5
6
7
## Not run: 
mywx_states()
mywx_districts()
mywx_towns()
mywx_touristdests()

## End(Not run)

hrbrmstr/mywx documentation built on May 31, 2019, 3:54 a.m.