org.hibernate.search.engine.spatial.GeoPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Hibernate Search engine, always required
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.engine.spatial;
/**
* A point in the geocentric coordinate system.
*
* @author Nicolas Helleringer
*/
public interface GeoPoint {
/**
* @return the latitude, in degrees
*/
double latitude();
/**
* @return the longitude, in degrees
*/
double longitude();
/**
* Create a {@link GeoPoint} from a latitude and a longitude.
*
* @param latitude The latitude of the GeoPoint, in degrees.
* @param longitude The longitude of the GeoPoint, in degrees.
* @return The corresponding {@link GeoPoint}.
*/
static GeoPoint of(double latitude, double longitude) {
return new ImmutableGeoPoint( latitude, longitude );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy