Lightning Parameters
Query parameters
Parameter | Description | Default value | |
---|---|---|---|
api | Hostname for use in production applications: api.accuweather.com. | N/A | Required |
apidev | Hostname for use in development applications: apidev.accuweather.com. | N/A | Required |
version | The API version (currently v1). | v1 | Required |
format | A string that specifies the response format. Currently only GeoJSON is available. | N/A | Required |
timeInterval | The total amount of time, in minutes, for which lightning strike data will be returned. Available timespans are 15, 30, 60, and 120. | 15 | Optional |
upperLeft | The northwestern-most corner of the bounding box. Provide the coordinates as latitude,longitude in decimal format. | N/A | Optional |
lowerRight | The southeastern-most corner of the bounding box. Provide the coordinates as latitude,longitude in decimal format. | N/A | Optional |
q | A string that identifies the central location from which to search. Provide the coordinates as latitude,longitude in decimal format. | N/A | Optional |
distanceRadius | The distance, in miles, from the center of the search area to the circle's outer edge. The maximum radius is 300 miles. | 25 | Optional |
offset | When used, offset determines the first result to return. Results will be returned in sets of 250. Offset=0 will return the first set of 250 results, Offset=1 will return the second set of 250 results, etc. Leaving this parameter off OR setting offset=-1 will return all results. | -1 | Optional |
Response parameters
Parameter | Description | ||
---|---|---|---|
type | A string that describes the array following. | ||
features | An array that contains all lightning strike data for the specified time and location. | ||
type | A string that describes the object data set following. | ||
geometry | An object that contains location data about the lightning strike in question. | ||
type | A string that describes the location data following. | ||
coordinates | An array that contains geolocation data for the lightning strike. | ||
properties | An object that contains general metadata about the lightning strike. | ||
id | A unique code used to identify the lightning strike. | ||
date | The date and time at which the lightning strike was observed. | ||
sourceId | An integer that identifies the lightning strike data source. Possible values are: 84 —GOES East GLM; 85 —GOES West GLM; 86 —AccuWeather Lightning Network. |
||
strikeType | A code that identifies the type of lightning strike. Posisble values are: ic —intra-cloud (cloud-to-cloud); cg —cloud-to-ground; "" —missing or not applicable. |
||
magnitude | The lightning strike's amperage. A positive (+) polarity value indicates a positively-charged cloud-to-ground strike, which is typically more energetic and can be more destructive. A negative (-) polarity value indicates a negatively-charged cloud-to-ground strike, which is the most common type of lightning. |