17 lines
353 B
JavaScript
17 lines
353 B
JavaScript
/**
|
|
* admin functions, mostly map/mapping related
|
|
*/
|
|
|
|
function phpvms_vacentral_airport_lookup(icao, callback) {
|
|
$.ajax({
|
|
url: '/api/airports/' + icao + '/lookup',
|
|
method: 'GET',
|
|
headers: {
|
|
'x-api-key': PHPVMS_USER_API_KEY
|
|
}
|
|
}).done(function (data, status) {
|
|
callback(data.data);
|
|
});
|
|
}
|
|
|