{"id":15297583,"url":"https://github.com/tornaia/java-offline-geoip","last_synced_at":"2026-03-06T17:35:18.105Z","repository":{"id":57727947,"uuid":"145222509","full_name":"tornaia/java-offline-geoip","owner":"tornaia","description":"Java Offline GeoIP maps any IP address to its country code","archived":false,"fork":false,"pushed_at":"2020-01-05T17:10:22.000Z","size":2845,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T13:39:51.145Z","etag":null,"topics":["apache2-license","code","country","geoip","geolite2","geolite2-database","ip","ipaddress","iso","iso3166","iso3166-1","iso31661","java","java8","library","location","maven","offline","opensource"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tornaia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-18T13:33:10.000Z","updated_at":"2024-12-20T16:56:44.000Z","dependencies_parsed_at":"2022-08-30T06:11:21.612Z","dependency_job_id":null,"html_url":"https://github.com/tornaia/java-offline-geoip","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornaia%2Fjava-offline-geoip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornaia%2Fjava-offline-geoip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornaia%2Fjava-offline-geoip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornaia%2Fjava-offline-geoip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tornaia","download_url":"https://codeload.github.com/tornaia/java-offline-geoip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795176,"owners_count":21162725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache2-license","code","country","geoip","geolite2","geolite2-database","ip","ipaddress","iso","iso3166","iso3166-1","iso31661","java","java8","library","location","maven","offline","opensource"],"created_at":"2024-09-30T19:18:22.400Z","updated_at":"2026-03-06T17:35:13.059Z","avatar_url":"https://github.com/tornaia.png","language":"Java","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=TAANNK2KXZXHG"],"categories":[],"sub_categories":[],"readme":"### Java Offline Geoip\n\n[![GitHub](https://img.shields.io/github/license/tornaia/java-offline-geoip.svg)](https://opensource.org/licenses/Apache-2.0)\n\n##### Donate\n\nClear feedback. Just if you appreciate my efforts!\n\n[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=TAANNK2KXZXHG)\n\n##### Intro\n\nISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest. [Read more](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)\n\n##### How to use\n\n```java\nGeoIP geoIP = GeoIPProvider.getGeoIP();\n\nOptional\u003cString\u003e optionalCountryIsoCode = geoIP.getTwoLetterCountryCode(\"50.63.202.32\");\n// optionalCountryIsoCode: Optional[US]\n\nOptional\u003cString\u003e optionalCountryName = geoIP.getCountryName(\"50.63.202.32\");\n// optionalCountryName: Optional[United States]\n```\n\n##### Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.tornaia\u003c/groupId\u003e\n  \u003cartifactId\u003ejava-offline-geoip\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.10\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n##### Prerequisites for development\n\n* OpenJDK 8 or later (https://jdk.java.net/) \n* Maven 3.2.1 or later (https://maven.apache.org/download.cgi)\n\n##### Build\n\n* mvn clean package\n\n##### License\n\nThe GeoLite2 databases are distributed under the Creative Commons Attribution-ShareAlike 4.0 International License. The attribution requirement may be met by including the following in all advertising and documentation mentioning features of or use of this database:\n\nThis product includes GeoLite2 data created by MaxMind, available from\n\u003ca href=\"http://www.maxmind.com\"\u003ehttp://www.maxmind.com\u003c/a\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftornaia%2Fjava-offline-geoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftornaia%2Fjava-offline-geoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftornaia%2Fjava-offline-geoip/lists"}