NAME
Geo::ICAO - Airport and ICAO codes lookup
SYNOPSIS
use Geo::ICAO;
...
my @region_codes = all_region_codes();
my @region_names = all_region_names();
EXPORT
Nothing is exported by default. But all the functions described below are exportable: it's up to you to decide what you want to import.
Note that the keyword :all
will import everything, and each category of function provides its own keyword.
FUNCTIONS
Regions
The first letter of an ICAO code refer to the region of the airport. The region is quite loosely defined as per the ICAO. This set of functions allow retrieval and digging of the regions.
Note: you can import all those functions with the :region
keyword.
- . all_region_codes( )
-
Return the list of all single letters defining an ICAO region. No parameters needed.
- . all_region_names( )
-
Return the list of all ICAO region names. No parameters needed.
- . my $code = region2code( $region )
-
Return the one-letter ICAO
$code
corresponding to$region
. If the region does not exist, return undef. - . my $region = code2region( $code )
-
Return the ICAO
$region
corresponding to$code
. Note that$code
can be a one-letter code (region), two-letters code (country) or a four-letters code (airport): in either case, the region will be returned.Return undef if the associated region doesn't exist.
BUGS
Please report any bugs or feature requests to < bug-geo-icao at rt.cpan.org>
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geo-ICAO. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SEE ALSO
Geo::ICAO
development takes place on http://geo-icao.googlecode.com - feel free to join us.
You can also look for information on this module at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
AUTHOR
Jerome Quelin, <jquelin at cpan.org>
COPYRIGHT & LICENSE
Copyright (c) 2007 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.