All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.recurse.geocoding.reverse.Geometry Maven / Gradle / Ivy

Go to download

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