Function fetch_by_query

Source
pub async fn fetch_by_query(
    q: &str,
    contact: &str,
) -> Result<Vec<Sample>, FetchError>
Expand description

Fetch sensor data using a query.

Warning: this can return tenths of megabytes of data and/or consume significant resources on the server.

Supported values:

  • type={sensor type}: comma-separated list of sensor types, e.g. SDS011,BME280
  • area={lat,lon,distance}: all sensors within a max radius e.g. 52.5200,13.4050,10
  • box={lat1,lon1,lat2,lon2}: all sensors in a ‘box’ with the given coordinates e.g. 52.1,13.0,53.5,13.5
  • country={country code}: comma-separated list of country codes. Example BE,DE,NL