Method: getRegions
Stay organized with collections
Save and categorize content based on your preferences.
Get contrail prediction as polygon regions.
If successful, the response will be a GeoJSON containing a FeatureCollection
with the following format:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"time": "<ISO 8601 datetime>",
"flightLevel": <int>,
"threshold": <int>,
"forecast_reference_time": "<ISO 8601 datetime>"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [...]
}
}
]
}
Flight levels are given in hectofeet with values between 270 and 440 inclusive. Severity levels are given as an integer between 1 and 4 inclusive. The higher the value, the more severe the contrail.
HTTP request
GET https://contrails.googleapis.com/v2/regions
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters |
time |
string
Required. Time of request [int: unix epoch; str: ISO 8601]
|
flightLevel[] |
integer
Optional. Flight levels in hectofeet. Valid values range from 270 to 440 (inclusive).
|
threshold |
integer
Optional. Minimum severity level threshold. Valid values range from 1 to 4 (inclusive). Setting this field returns only regions with severity >= threshold.
|
aircraftClass |
string
Optional. Aircraft class. Currently only 'default' is supported.
|
Request body
The request body must be empty.
Response body
If successful, the response is a generic HTTP response whose format is defined by the method.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-17 UTC."],[],[],null,["# Method: getRegions\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n\nGet contrail prediction as polygon regions.\n\nIf successful, the response will be a [GeoJSON](https://datatracker.ietf.org/doc/html/rfc7946#autoid-4) containing a `FeatureCollection` with the following format: \n\n {\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"properties\": {\n \"time\": \"\u003cISO 8601 datetime\u003e\",\n \"flightLevel\": \u003cint\u003e,\n \"threshold\": \u003cint\u003e,\n \"forecast_reference_time\": \"\u003cISO 8601 datetime\u003e\"\n },\n \"geometry\": {\n \"type\": \"MultiPolygon\",\n \"coordinates\": [...]\n }\n }\n ]\n }\n\nFlight levels are given in hectofeet with values between 270 and 440 inclusive. Severity levels are given as an integer between 1 and 4 inclusive. The higher the value, the more severe the contrail.\n\n### HTTP request\n\n`GET https://contrails.googleapis.com/v2/regions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `time` | `string` Required. Time of request \\[int: unix epoch; str: ISO 8601\\] |\n| `flightLevel[]` | `integer` Optional. Flight levels in hectofeet. Valid values range from 270 to 440 (inclusive). |\n| `threshold` | `integer` Optional. Minimum severity level threshold. Valid values range from 1 to 4 (inclusive). Setting this field returns only regions with severity \\\u003e= threshold. |\n| `aircraftClass` | `string` Optional. Aircraft class. Currently only 'default' is supported. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response is a generic HTTP response whose format is defined by the method."]]