
uk.recurse.geocoding.reverse.Geometry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reverse-country-code Show documentation
Show all versions of reverse-country-code Show documentation
A reverse geocoder that converts latitude and longitude coordinates to information
about a country such as names, ISO codes and locales.
The newest version!
package uk.recurse.geocoding.reverse;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;
import java.util.stream.Stream;
@JsonTypeInfo(use = Id.NAME, property = "type")
@JsonSubTypes({@Type(Polygon.class), @Type(MultiPolygon.class)})
interface Geometry {
boolean contains(float lat, float lon);
Country getCountry(float lat, float lon);
BoundingBox boundingBox();
Stream flatten(Country country);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy