probe-gate
Demonstrates fetching Pilot Reports within a bounding box around the New York area for the last 3 hours.
curl 'https://aviationweather.gov/api/data/pirep?bbox=40%2C-74%2C41%2C-73&format=json&age=3'
import requests
resp = requests.get(
"https://aviationweather.gov/api/data/pirep",
params={
'bbox': '40,-74,41,-73',
'format': 'json',
'age': '3',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("aviation-weather-data")
result = api.fetch("pirep", bbox="40,-74,41,-73", format="json", age=3)
for item in result:
print(item)
const resp = await fetch("https://aviationweather.gov/api/data/pirep?bbox=40%2C-74%2C41%2C-73&format=json&age=3");
const data = await resp.json();