List Airports by zip code

Name
listAirports($startresultno, $perpagerecord)
Example
<html>

<head></head>

<body>

<?php

require_once(“eMaxApi.class.php”);

$emax = new eMaxClient;

$emax->zipcode = $zipcode; // mandatory

$airports = $emax->listAirports($startresultno, $perpagerecord );

?>

</body>

</html>
Result
Return list of Airports available near specific zipcode search.  This function only available for USA zipcode.

Array
(
[0] => Array
(
[AIRPORTCITY] => Airport City Name
[AIRPORTFACILITYNAME] => Airport Name
[AIRPORTDISTANCE] => Distance from Searched Zipcode
)

[1] => Array
(
[AIRPORTCITY] => Airport City Name
[AIRPORTFACILITYNAME] => Airport Name
[AIRPORTDISTANCE] => Distance from searched Zipcode
)
)
Description
Variables :
This function uses the same variable emax->zipcode as used in listStores function. Click here to see listStores function reference.

Parameters :

$startresultno (optional)
Type (Integer), Default(0), Value (Start count of the airport)
- Set this if you want to show airports near the given zip code in pagination. The function will return airports in order of distance from the given zip code starting from the count defined in this parameter.

$perpagerecord (optional)
Type (Integer), Default(10), Value (Number of airports to return)
- Set this if you want to show airports near the given zip code in pagination. The function will return a total of airports as defined in this parameter in order of distance from the given zip code.

Airport functions only works with USA stores.
Summary
Function returns defined number of airports in order of distance from the specified zip code. This function is available to stores within USA. Not applicable to CANADA, AUSTRALIA and UK Stores.
eMax Store locator software
eMax Store locator software