Class FlightsResource.ComputeTypicalFlightEmissionsRequest
Retrieves typical flight emissions estimates between two airports, also known as a market. If there are no estimates available for a certain market, the response will return the market object with empty emission fields. The request will still be considered successful. Details on how the typical emissions estimates are computed are on GitHub. The request can contain up to 1000 markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT error.
Inheritance
FlightsResource.ComputeTypicalFlightEmissionsRequest
Inherited Members
Namespace: Google.Apis.TravelImpactModel.v1
Assembly: Google.Apis.TravelImpactModel.v1.dll
Syntax
public class FlightsResource.ComputeTypicalFlightEmissionsRequest : TravelImpactModelBaseServiceRequest<ComputeTypicalFlightEmissionsResponse>, IClientServiceRequest<ComputeTypicalFlightEmissionsResponse>, IClientServiceRequest
Constructors
ComputeTypicalFlightEmissionsRequest(IClientService, ComputeTypicalFlightEmissionsRequest)
Constructs a new ComputeTypicalFlightEmissions request.
Declaration
public ComputeTypicalFlightEmissionsRequest(IClientService service, ComputeTypicalFlightEmissionsRequest body)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| ComputeTypicalFlightEmissionsRequest | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes ComputeTypicalFlightEmissions parameter list.
Declaration
protected override void InitParameters()