Removed the large Geo Location File - GeoLite2-City.mmdb from code and it's references.
This commit is contained in:
@@ -16,7 +16,7 @@ public class GeoIpIntegrationTest {
|
||||
public void givenIP_whenFetchingCity_thenReturnsCityData() throws IOException, GeoIp2Exception {
|
||||
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
File database = new File(classLoader.getResource("GeoLite2-City.mmdb").getFile());
|
||||
File database = new File("your-path-to-db-file");
|
||||
DatabaseReader dbReader = new DatabaseReader.Builder(database).build();
|
||||
|
||||
InetAddress ipAddress = InetAddress.getByName("google.com");
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 54 MiB |
Reference in New Issue
Block a user