<dependencies>
<dependency>
<groupId>org.n52</groupId>
<artifactId>52n-faroe-annotations</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
public class Location {
@Coordinate(description = "Longitude value")
private double longitude;
@Coordinate(description = "Latitude value")
private double latitude;
@Identifier(description = "Location name")
private String name;
}
public class LocationQueries {
@Query(description = "Query locations based on longitude and latitude ranges")
public List<Location> queryLocations(@Range(from = -180, to = 180) double minLongitude,
@Range(from = -90, to = 90) double maxLongitude,
@Range(from = -90, to = 90) double minLatitude,
@Range(from = -90, to = 90) double maxLatitude) {
}
}