If I use Android Geocoder
Geocoder geocoder = new Geocoder(context, Locale.getDefault());
List<Address> addresses = geocoder.getFromLocationName(addressName, 3);
How can I check if an address is an airport (or not)? Because there is no such a method in Address class?
I would like something like
Address address = addresses[0];
address.isAirport();
Am I forced to use classis Geocoding API and do the parsing and so on..? Because under Address Component Types I see an item
airport indicates an airport.
You can check Address.getFeatureName. You’ll have to look for the string “airport” yourself though.