pa_find_sensors: Get all of the PurpleAir sensor indices within a bounding...

View source: R/purpleair.R

pa_find_sensorsR Documentation

Get all of the PurpleAir sensor indices within a bounding box. See https://api.purpleair.com/#api-sensors-get-sensors-data

Description

Get all of the PurpleAir sensor indices within a bounding box. See https://api.purpleair.com/#api-sensors-get-sensors-data

Usage

pa_find_sensors(nwlng, nwlat, selng, selat, key)

Arguments

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

Value

A data frame with sensor_index, date_created, last_seen, name, latitude, and longitude for all sensors within the specified bounding box.

Examples

# 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)

raffscallion/rapidfire documentation built on June 1, 2025, 2:04 p.m.