AviationEdgeAPI / Aviation-Edge-Complete-API

The complete repository for aviation APIs.
https://aviation-edge.com/developers
26 stars 6 forks source link

Bug: Routes return is missing airports #3

Open danshev opened 2 years ago

danshev commented 2 years ago

Making a call to /routes

GET => http://aviation-edge.com/v2/public/routes?key=MY_API_KEY&departureIata=BOS ... Barcelona (BCN) not in response GET => http://aviation-edge.com/v2/public/routes?key=MY_API_KEY&departureIata=BOS&arrivalIata=BCN ... BCN in response

Edit: the return for larger airports (BOS, ORD, ATL, NRT) is consistently exactly 300 rows ... is it possible there's an inadvertent limit on the return?

I need the /routes endpoint to provide all possible destinations from an origin airport -- is there anything that can be done to fix?

danshev commented 2 years ago

Solution: specify a high limit query string parameter, e.g.:

http://aviation-edge.com/v2/public/routes?key=MY_API_KEY&departureIata=BOS&limit=5000