Skip to content

What country is at a particular latitude/longitude? This tiny Java library tells you in 50 milliseconds, without using the Internet.

License

Notifications You must be signed in to change notification settings

coordinates2country/coordinates2country

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coordinates2country

What country is at a particular latitude/longitude? This Java library tells you in 50 milliseconds, without using the Internet and without requiring any permission.

  • Fast reverse geocoding
  • Never needs an Internet connection

For the Android version, see https://github.com/coordinates2country/coordinates2country-android.

Use

This sample program that uses the library might help.

1) Import the library

If using Gradle:

implementation("io.github.coordinates2country:coordinates2country:1.6")

For other build systems or for the JAR, search for the latest version on Maven Central.

At the top of your Java file, after the package declaration, insert this line:

import io.github.coordinates2country.Coordinates2Country;

2) Call the library

Coordinates2Country.country(-23.7, 39.8) returns the String France.

If you prefer identifiers, Coordinates2Country.countryQID(-23.7, 39.8) returns 142, the Wikidata QID number of France.

Testimonial

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!

Layton Berth, developer at X-Plor

Release procedure

About

What country is at a particular latitude/longitude? This tiny Java library tells you in 50 milliseconds, without using the Internet.

Topics

Resources

License

Stars

Watchers

Forks