ebird-client-0.2.0.1: Client functions for querying the eBird API.
Copyright(c) 2023 Finley McIlwaine
LicenseMIT (see LICENSE)
MaintainerFinley McIlwaine <finleymcilwaine@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.EBird.Client.Observations

Description

Types and functions for observation-related eBird API queries.

Synopsis

Recent observations

recentObservations Source #

Arguments

:: Text

eBird API key

-> RegionCode

Region(s) to get observations from

-> RecentObservationsParams

Optional parameters

default: defaultRecentObservationsParams

-> ClientM [Observation 'Simple] 

Get a list of recent observations within a region. Results only include the most recent observation for each species in the region.

For example, get up to 10 recent observations from the last 5 days in Park County, Wyoming (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentObservations key
    "US-WY-029"
    (def & #maxResults ?~ 10 & #back ?~ 5)

See the eBird API documentation for the corresponding endpoint.

data RecentObservationsParams Source #

Optional parameters accepted by the RecentObservationsAPI.

Note that defaultRecentObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentObservationsParamsBack field to 30:

def & recentObservationsParamsBack ?~ 30

Or, using -XOverloadedLabels:

def & #back ?~ 30

Constructors

RecentObservationsParams 

Fields

Instances

Instances details
Read RecentObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe TaxonomyCategories, b ~ Maybe TaxonomyCategories) => LabelOptic "categories" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe RegionCode, b ~ Maybe RegionCode) => LabelOptic "extraRegions" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "provisional" k RecentObservationsParams RecentObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentObservationsParams :: RecentObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentObservationsParams

Recent notable observations

recentNotableObservations Source #

Arguments

:: Text

eBird API key

-> RegionCode

Region(s) to get observations from

-> RecentNotableObservationsParams

Optional parameters

default: defaultRecentNotableObservationsParams

-> ClientM [SomeObservation] 

Get a list of recent notable observations within a region. Results only include the most recent observation for each species in the region.

For example, get up to 10 recent notable observations from the last 30 days in Park County, Wyoming (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentNotableObservations key
    "US-WY-029"
    (def & #maxResults ?~ 10 & #back ?~ 30)

See the eBird API documentation for the corresponding endpoint.

data RecentNotableObservationsParams Source #

Optional parameters accepted by the RecentNotableObservationsAPI.

Note that defaultRecentNotableObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentNotableObservationsParamsBack field to 30:

def & recentNotableObservationsParamsBack ?~ 30

Or, using -XOverloadedLabels:

def & #back ?~ 30

Constructors

RecentNotableObservationsParams 

Fields

Instances

Instances details
Read RecentNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentNotableObservationsParams RecentNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe DetailLevel, b ~ Maybe DetailLevel) => LabelOptic "detail" k RecentNotableObservationsParams RecentNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe RegionCode, b ~ Maybe RegionCode) => LabelOptic "extraRegions" k RecentNotableObservationsParams RecentNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentNotableObservationsParams RecentNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentNotableObservationsParams RecentNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentNotableObservationsParams RecentNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentNotableObservationsParams :: RecentNotableObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentNotableObservationsParams

Recent species observations

recentSpeciesObservations Source #

Arguments

:: Text

eBird API key

-> RegionCode

Region(s) to get observations from

-> SpeciesCode

Species to get observations of (e.g. "barswa" for Barn Swallow)

-> RecentSpeciesObservationsParams

Optional parameters

default: defaultRecentSpeciesObservationsParams

-> ClientM [Observation 'Simple] 

Get a list of recent observations of a specific species within a region.

For example, get observations of Peregrine Falcons from the last 30 days in Park County, Wyoming (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentSpeciesObservations key
    "US-WY-029"
    "perfal"
    (def & #back ?~ 30)

See the eBird API documentation for the corresponding endpoint.

data RecentSpeciesObservationsParams Source #

Optional parameters accepted by the RecentSpeciesObservationsAPI.

Note that defaultRecentSpeciesObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentSpeciesObservationsParamsBack field to 30:

def & recentSpeciesObservationsParamsBack ?~ 30

Or, using -XOverloadedLabels:

def & #back ?~ 30

Constructors

RecentSpeciesObservationsParams 

Fields

Instances

Instances details
Read RecentSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentSpeciesObservationsParams RecentSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe RegionCode, b ~ Maybe RegionCode) => LabelOptic "extraRegions" k RecentSpeciesObservationsParams RecentSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentSpeciesObservationsParams RecentSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentSpeciesObservationsParams RecentSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentSpeciesObservationsParams RecentSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "provisional" k RecentSpeciesObservationsParams RecentSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentSpeciesObservationsParams :: RecentSpeciesObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentSpeciesObservationsParams

Recent nearby observations

recentNearbyObservations Source #

Arguments

:: Text

eBird API key

-> Double

Latitude of the location to get observations near

-> Double

Longitude of the location to get observations near

-> RecentNearbyObservationsParams

Optional parameters

default: defaultRecentNearbyObservationsParams

-> ClientM [Observation 'Simple] 

Get a list of recent observations within some radius of some latitude/longitude.

For example, get up to 5 nearby observations within 10km of Cody, Wyoming (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentNearbyObservations key
    44.526340 (-109.056534)
    (def & #maxResults ?~ 5 & #radius ?~ 10)

See the eBird API documentation for the corresponding endpoint.

data RecentNearbyObservationsParams Source #

Optional parameters accepted by the RecentNearbyObservationsAPI.

Note that defaultRecentNearbyObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentNearbyObservationsParamsRadius field to 10km:

def & recentNearbyObservationsParamsRadius ?~ 10

Or, using -XOverloadedLabels:

def & #radius ?~ 10

Constructors

RecentNearbyObservationsParams 

Fields

Instances

Instances details
Read RecentNearbyObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentNearbyObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentNearbyObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentNearbyObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe TaxonomyCategories, b ~ Maybe TaxonomyCategories) => LabelOptic "categories" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "provisional" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "radius" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SortObservationsBy, b ~ Maybe SortObservationsBy) => LabelOptic "sortBy" k RecentNearbyObservationsParams RecentNearbyObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentNearbyObservationsParams :: RecentNearbyObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentNearbyObservationsParams

Recent nearby species observations

recentNearbySpeciesObservations Source #

Arguments

:: Text

eBird API key

-> SpeciesCode

Species to get observations of (e.g. "bohwax" for Bohemian Waxwing)

-> Double

Latitude of the location to get observations near

-> Double

Longitude of the location to get observations near

-> RecentNearbySpeciesObservationsParams

Optional parameters

default: defaultRecentNearbySpeciesObservationsParams

-> ClientM [Observation 'Simple] 

Get a list of recent observations of a species within some radius of some latitude/longitude.

For example, get up to 5 nearby observations of Peregrine Falcons within 50km of Cody, Wyoming (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentNearbySpeciesObservations key
    "perfal"
    44.526340 (-109.056534)
    (def & #radius ?~ 50 & #maxResults ?~ 5)

See the eBird API documentation for the corresponding endpoint.

data RecentNearbySpeciesObservationsParams Source #

Optional parameters accepted by the RecentNearbySpeciesObservationsAPI.

Note that defaultRecentNearbySpeciesObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentNearbySpeciesObservationsParamsRadius field to 10km:

def & recentNearbySpeciesObservationsParamsRadius ?~ 10

Or, using -XOverloadedLabels:

def & #radius ?~ 10

Constructors

RecentNearbySpeciesObservationsParams 

Fields

Instances

Instances details
Read RecentNearbySpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentNearbySpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentNearbySpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentNearbySpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe TaxonomyCategories, b ~ Maybe TaxonomyCategories) => LabelOptic "categories" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "provisional" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "radius" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SortObservationsBy, b ~ Maybe SortObservationsBy) => LabelOptic "sortBy" k RecentNearbySpeciesObservationsParams RecentNearbySpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentNearbySpeciesObservationsParams :: RecentNearbySpeciesObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentNearbySpeciesObservationsParams

Recent nearest species observations

recentNearestSpeciesObservations Source #

Arguments

:: Text

eBird API key

-> SpeciesCode

Species to get observations of (e.g. "bohwax" for Bohemian Waxwing)

-> Double

Latitude of the location to get observations near

-> Double

Longitude of the location to get observations near

-> RecentNearestSpeciesObservationsParams

Optional parameters

default: defaultRecentNearestSpeciesObservationsParams

-> ClientM [Observation 'Simple] 

Get a list of recent observations of some species nearest to some latitude/longitude.

For example, get the 5 nearest observations of Black-throated Gray Warblers within 50km of Capitol Reef National Park (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentNearestSpeciesObservations key
    "btywar"
    38.366970 (-111.261504)
    (def & #radius ?~ 50 & #maxResults ?~ 5)

See the eBird API documentation for the corresponding endpoint.

data RecentNearestSpeciesObservationsParams Source #

Optional parameters accepted by the RecentNearestSpeciesObservationsAPI.

Note that defaultRecentNearestSpeciesObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentNearestSpeciesObservationsParamsRadius field to 10km:

def & recentNearestSpeciesObservationsParamsRadius ?~ 10

Or, using -XOverloadedLabels:

def & #radius ?~ 10

Constructors

RecentNearestSpeciesObservationsParams 

Fields

Instances

Instances details
Read RecentNearestSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentNearestSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentNearestSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentNearestSpeciesObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentNearestSpeciesObservationsParams RecentNearestSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentNearestSpeciesObservationsParams RecentNearestSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentNearestSpeciesObservationsParams RecentNearestSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentNearestSpeciesObservationsParams RecentNearestSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "provisional" k RecentNearestSpeciesObservationsParams RecentNearestSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "radius" k RecentNearestSpeciesObservationsParams RecentNearestSpeciesObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentNearestSpeciesObservationsParams :: RecentNearestSpeciesObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentNearestSpeciesObservationsParams

Recent nearby notable observations

recentNearbyNotableObservations Source #

Arguments

:: Text

eBird API key

-> Double

Latitude of the location to get observations near

-> Double

Longitude of the location to get observations near

-> RecentNearbyNotableObservationsParams

Optional parameters

default: defaultRecentNearbyNotableObservationsParams

-> ClientM [SomeObservation] 

Get a list of recent notable observations of some near some latitude/longitude.

For example, get 5 notable observations within 25km of Capitol Reef National Park (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  recentNearbyNotableObservations key
    38.366970 (-111.261504)
    (def & #radius ?~ 25 & #maxResults ?~ 5)

See the eBird API documentation for the corresponding endpoint.

data RecentNearbyNotableObservationsParams Source #

Optional parameters accepted by the RecentNearbyNotableObservationsAPI.

Note that defaultRecentNearbyNotableObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _recentNearbyNotableObservationsParamsRadius field to 10km:

def & recentNearbyNotableObservationsParamsRadius ?~ 10

Or, using -XOverloadedLabels:

def & #radius ?~ 10

Constructors

RecentNearbyNotableObservationsParams 

Fields

Instances

Instances details
Read RecentNearbyNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show RecentNearbyNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default RecentNearbyNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq RecentNearbyNotableObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "back" k RecentNearbyNotableObservationsParams RecentNearbyNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe DetailLevel, b ~ Maybe DetailLevel) => LabelOptic "detail" k RecentNearbyNotableObservationsParams RecentNearbyNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k RecentNearbyNotableObservationsParams RecentNearbyNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k RecentNearbyNotableObservationsParams RecentNearbyNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k RecentNearbyNotableObservationsParams RecentNearbyNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "radius" k RecentNearbyNotableObservationsParams RecentNearbyNotableObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultRecentNearbyNotableObservationsParams :: RecentNearbyNotableObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for RecentNearbyNotableObservationsParams

Historical observations

historicalObservations Source #

Arguments

:: Text

eBird API key

-> RegionCode

Region(s) to get observations from

-> EBirdDate

Date to get observations on, from year 1800 to present

-> HistoricalObservationsParams

Optional parameters

default: defaultHistoricalObservationsParams

-> ClientM [SomeObservation] 

Get a list of observations for each species seen on a specific date.

For example, get a list of 10 fully detailed observations for each species seen on July 11th, 2023 in Park County, Wyoming (using -XOverloadedLabels and -XOverloadedStrings):

askEBird $
  historicalObservations key
    "US-WY-029"
    "2023-07-11"
    (def & #maxResults ?~ 10 & #detail ?~ Full)

See the eBird API documentation for the corresponding endpoint.

data HistoricalObservationsParams Source #

Optional parameters accepted by the HistoricalObservationsAPI.

Note that defaultHistoricalObservationsParams (or the Default instance's def value) may be used to accept the defaults of the eBird API.

Additionally, note that there are optics available for manipulating this type. For example, if you would like to just set the _historicalObservationsParamsDetail field to Full:

def & historicalObservationsParamsDetail ?~ Full

Or, using -XOverloadedLabels:

def & #detail ?~ Full

Constructors

HistoricalObservationsParams 

Fields

Instances

Instances details
Read HistoricalObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Show HistoricalObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Default HistoricalObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

Eq HistoricalObservationsParams Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe TaxonomyCategories, b ~ Maybe TaxonomyCategories) => LabelOptic "categories" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe DetailLevel, b ~ Maybe DetailLevel) => LabelOptic "detail" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe RegionCode, b ~ Maybe RegionCode) => LabelOptic "extraRegions" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "hotspot" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SPPLocale, b ~ Maybe SPPLocale) => LabelOptic "locale" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "maxResults" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "provisional" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

(k ~ A_Lens, a ~ Maybe SelectObservation, b ~ Maybe SelectObservation) => LabelOptic "select" k HistoricalObservationsParams HistoricalObservationsParams a b Source # 
Instance details

Defined in Data.EBird.Client.Observations

defaultHistoricalObservationsParams :: HistoricalObservationsParams Source #

Note that this value does not actually use the eBird API default values. It simply sets every option to Nothing, which means we just don't send any of these parameters to the eBird API and they will use their own defaults.

Optics for HistoricalObservationsParams