Besides city/town and country code, this library also returns the nearest latitude and longitude and also administrative regions 1 and 2. This library also uses a parallelised implementation of K-D trees which promises an improved performance especially for large inputs. By default, the K-D tree is populated with cities that have a population > 1000. The source of the data is GeoNames. You can als

