Query by city name on geolite2 .mmdb file (JAVA)
问题 I am using GeoLite2 to get Location by IP address for my java appliccation. I want to get country by city from GeoLite2-City.mmdb file. This is my reader : DatabaseReader reader = new DatabaseReader.Builder(dbFileStream).withCache(new CHMCache()).build(); I am getting CityResponse by IP address like below : CityResponse cityResponse = reader.city(InetAddress.getByName("an IP address")); But I want to get Country name by city like this : String countryName = reader.getCountryByCity("Paris”);