Jump to content

Charts.aero API


freshJet

Recommended Posts

I'm sure some will have discovered Charts.aero, they're a relatively new charts site. Love the site now because it's clean and easy to use, charts are synchronised at least hourly, but best of all, there's an API available.

Problem is, I can't handle APIs.

The API can be found here. There are three ways to retrieve charts; by search string, by IATA and by ICAO. I'll do it through all I think, but just use ICAO for now.

This is the PHP for the ICAO retrieval:

$response = Unirest::post(
"https://charts.p.mashape.com/retrieve/icao",
array(
"X-Mashape-Authorization" => "******************************"
),
array(
"icao" => "",
));

You'll notice the Unirest class, that's required, get it here.

From here on, I'm clueless. How would this work? I'm going to test it through Vansers' charts module, so I've commented out the code that retrieves the airport charts from the database and instead use the PHP above.

Anyone care to help out?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...