Closed biaggi closed 5 years ago
IATA support was recently added to openstreetmap.
If you'd like to add support for geonames too, there are two modifications which need to be made:
Assign the IATA code as an 'alias' for the name so it can be found during search: https://github.com/pelias/openstreetmap/blob/08b84052775f70956ce3dd490f0fa7c7d61ce567/stream/tag_mapper.js#L75-L76
Add the IATA code to the addendum
so that it's available in the response json:
https://github.com/pelias/openstreetmap/pull/487
Here is an example of a response containing IATA and ICAO data from OpenStreetMap: https://pelias.github.io/compare/#/v1/place%3Fids=openstreetmap:venue:way/158042008
Searching by categories is a BETA feature, it's supported in the API but not well documented: https://pelias.github.io/compare/#/v1/search%3Fcategories=transport:air:aerodrome&text=TXL
Thank you for your help, as far as I see my server is not returning the iata in that search, I think that's cos the osm import script failed a couple of times due to lack of space in the hard drive so I have to check the database and the process itself
Im trying to get the iata from airports in any way from pelias, I've been reading the geocode importer and I've checked the content in elastic search, but haven't seen where is stored the alternative names or if are being stored.
How it works:
As far as I've understood, the document stored for any location follows the pelias-schema
What seems to be correct if we compare it with an elastic search document:
This document should correspond to the following allCountries.txt line:
At this point I notice that I have a problem, because I need to search by the alternative name code iata and the elastic search document does not contain such information and in the allCountries.txt is not structured in a way in which is associated the code with the value.
How do I expect it to work
I expect to be able to search by category in a region or geographical boundary and get the iata code value in the result
https://www.geonames.org/6299345/adolfo-suarez-madrid-barajas-airport.html
Any way to achieve this? any suggestion on at least how to search by category or how to import the alternative_names from geocode?
Thank you in advance