All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Get flights in distance using FlightXML / JSON
PostPosted: Wed Dec 28, 2016 6:16 pm 
Offline
Geooorg - FlightAware user avatar

Joined: Tue Dec 27, 2016 2:30 pm
Posts: 1
Hi!
I'd like to use the FlightXML/JSON API in order to get a result set of flights within a bounding box of a known latitude/longitude (as described in http://flightxml.flightaware.com/soap/F ... yeInFlight)

There are several input parameters.
For me, lat/lon and distance would probably be sufficient. Are there any examples on how to use that exactly? And how to use the "range" parameter exactly as GET parameter?

Thanks and best regards
Georg


Top
 Profile  
 
 Post subject: Re: Get flights in distance using FlightXML / JSON
PostPosted: Tue Jan 03, 2017 7:38 pm 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 1434
Location: FlightAware WHQ
An example of a search query for a lat/lon box is listed in that documentation:

Code:
{range lat 36.897669 40.897669} {range lon -79.03655 -75.03655}


You could try a GET operation for SearchBirdseyeInFlight, such as:

Code:
https://flightxml.flightaware.com/json/FlightXML2/SearchBirdseyeInFlight?query={range%20lat%2036.897669%2040.897669}%20{range%20lon%20-79.03655%20-75.03655}&howMany=10&offset=0


Alternatively you can use the Search function also:

Code:
https://flightxml.flightaware.com/json/FlightXML2/Search?query=-latlong "37.601258 -122.413616 37.636882 -122.291737" -inAir 1&howMany=10&offset=0


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron