Description Usage Arguments Value See Also Examples
A function to get cities information from Aviation Edge API. As stated on aviation-edge.com, this cities database contains all cities in the world with their aviation and travel related data.
Available API Options
The entire database of cities, i.e. get all cities in one shot, this represents ~XXk+ items worldwide (with free API)
Information for a specific cityt using it's IATA Code.
All cities in a specific country using country code (Iso).
1 | getAEcities(city.iata.code = NULL, country.iso.code = NULL, api.key)
|
city.iata.code |
IATA code of the airport |
country.iso.code |
ISO code of the country (eg. DE) |
api.key |
you authentication api key |
answer a json object containing airports information details
"cityId": "1",
"nameCity": "Anaa",
"codeIataCity": "AAA",
"codeIso2Country": "PF",
"latitudeCity": "-17.05",
"longitudeCity": "-145.41667",
"timezone": "Pacific/Tahiti",
"GMT": "-10",
"geonameId": "0"
https://www.iata.org/publications/Pages/code-search.aspx
https://aviation-edge.com/developers/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Details about Anaa city
## Not run:
getAEcities(city.iata.code = 'AAA ',
country.iso.code = NULL,
api.key = 'key.here')
## End(Not run)
All cities in France
## Not run:
getAEcities(city.iata.code = NULL,
country.iso.code = 'FR',
api.key = 'key.here')
## End(Not run)
All cities
## Not run:
getAEcities(city.iata.code = NULL,
country.iso.code = NULL,
api.key = 'key.here')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.