Class PollenForecastRequest
- Namespace
- GoogleMapsApi.Entities.Pollen.Request
- Assembly
- GoogleMapsApi.dll
Request for the Google Pollen API forecast:lookup endpoint
(GET https://pollen.googleapis.com/v1/forecast:lookup). Returns up to five days of daily
pollen information (types and plants) for a coordinate.
public sealed class PollenForecastRequest : MapsBaseRequest
- Inheritance
-
PollenForecastRequest
- Inherited Members
Remarks
The Pollen API is billable; calls beyond the free tier incur charges.
Properties
Days
Number of forecast days to return, in the range [1, 5]. Required.
public int Days { get; set; }
Property Value
LanguageCode
IETF BCP-47 language code for textual fields in the response (e.g. "en").
public string? LanguageCode { get; set; }
Property Value
Latitude
Latitude of the query point, in degrees. Required.
public double Latitude { get; set; }
Property Value
Longitude
Longitude of the query point, in degrees. Required.
public double Longitude { get; set; }
Property Value
PageSize
Maximum number of daily records per page. Defaults to the number of days when unset.
public int? PageSize { get; set; }
Property Value
- int?
PageToken
Page token from a previous response's NextPageToken to fetch the next page.
public string? PageToken { get; set; }
Property Value
PlantsDescription
Whether to include the detailed PlantDescription for each plant. Defaults to true
server-side when unset; set false to reduce the response size.
public bool? PlantsDescription { get; set; }
Property Value
- bool?
Methods
GetUri()
Builds the absolute request URI, including scheme, base URL, and serialized query-string parameters.
public override Uri GetUri()
Returns
- Uri
The fully composed URI to send to the Google Maps API.