{"id":36820823,"url":"https://github.com/coordinates2country/coordinates2country","last_synced_at":"2026-01-12T14:00:19.508Z","repository":{"id":57732833,"uuid":"417434872","full_name":"coordinates2country/coordinates2country","owner":"coordinates2country","description":"What country is at a particular latitude/longitude? This tiny Java library (less than 100kB) tells you in 50 milliseconds, without using the Internet.","archived":false,"fork":false,"pushed_at":"2024-11-18T13:45:35.000Z","size":878,"stargazers_count":14,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-07T09:15:15.102Z","etag":null,"topics":["android","geocoder","geocoder-library","jar","java","library","offline","privacy","reverse-geocoding"],"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/coordinates2country.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-15T09:01:33.000Z","updated_at":"2024-11-18T13:45:38.000Z","dependencies_parsed_at":"2023-12-25T09:43:39.684Z","dependency_job_id":"6b92c2be-3ebb-46fd-9548-a184a1ad6ecc","html_url":"https://github.com/coordinates2country/coordinates2country","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coordinates2country/coordinates2country","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coordinates2country%2Fcoordinates2country","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coordinates2country%2Fcoordinates2country/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coordinates2country%2Fcoordinates2country/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coordinates2country%2Fcoordinates2country/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coordinates2country","download_url":"https://codeload.github.com/coordinates2country/coordinates2country/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coordinates2country%2Fcoordinates2country/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","geocoder","geocoder-library","jar","java","library","offline","privacy","reverse-geocoding"],"created_at":"2026-01-12T14:00:17.949Z","updated_at":"2026-01-12T14:00:19.402Z","avatar_url":"https://github.com/coordinates2country.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coordinates2country\n\nWhat country is at a particular latitude/longitude? This Java library (less than 100kB) tells you in 50 milliseconds, without using the Internet and without requiring any permission.\n\n- Fast reverse geocoding.\n- Never needs an Internet connection, not even the first time.\n\nFor the Android version, see https://github.com/coordinates2country/coordinates2country-android.\n\n# Use\n\nThis [sample program that uses the library](https://github.com/coordinates2country/sample) might help.\n\n## 1) Import the library\n\nIf using Gradle:\n```\nimplementation(\"io.github.coordinates2country:coordinates2country:1.10\")\n```\n\nFor other build systems or for the JAR, search for the latest version on [Maven Central](https://central.sonatype.com/namespace/io.github.coordinates2country).\n\nAt the top of your Java file, after the package declaration, insert this line:\n```\nimport io.github.coordinates2country.Coordinates2Country;\n```\n\n## 2) Call the library\n\n`Coordinates2Country.country(-23.7, 39.8)` returns the String `France`.\n\nAlternatives:\n- `Coordinates2Country.country(-23.7, 39.8, Locale.SPANISH)` returns the String `Francia`.\n- `Coordinates2Country.countryCode(-23.7, 39.8)` returns `FR`, the [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) code of France, used by Java.\n- `Coordinates2Country.countryQID(-23.7, 39.8)` returns `142`, the Wikidata [QID](https://www.wikidata.org/wiki/Q142) number of France.\n\n# Testimonial\n\n\u003e _Impressed with the library! It swiftly translated coordinates to countries with precision. The developer's quick response to an issue I encountered, despite the library's age, reflects their commitment to user satisfaction. Kudos for a reliable tool and excellent support!_\n\nLayton Berth, developer at X-Plor\n\n_[Release procedure](https://github.com/coordinates2country/coordinates2country/wiki#release-procedure)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoordinates2country%2Fcoordinates2country","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoordinates2country%2Fcoordinates2country","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoordinates2country%2Fcoordinates2country/lists"}