pa_find_sensors | R Documentation |
Get all of the PurpleAir sensor indices within a bounding box. See https://api.purpleair.com/#api-sensors-get-sensors-data
pa_find_sensors(nwlng, nwlat, selng, selat, key)
nwlng |
A northwest longitude for the bounding box |
nwlat |
A northwest latitude for the bounding box |
selng |
A southeast longitude for the bounding box |
selat |
A southeast latitude for the bounding box |
key |
A PurpleAir READ API key |
A data frame with sensor_index, date_created, last_seen, name, latitude, and longitude for all sensors within the specified bounding box.
# CA Bounding Box
nwlng <- -124.41
nwlat <- 42.01
selng <- -114.13
selat <- 32.53
pa_find_sensors(nwlng, nwlat, selng, selat, key = my_api_key)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.