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

io.sphere.sdk.models.Point Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.models;


import java.util.Arrays;

/**
 * Represents a GeoJSON point.
 *
 * @see GeoJSON Point
 */
public interface Point extends GeoJSON {
    /**
     * Returns the longitude of this point.
     *
     * @return the longitude of this point
     */
    Double getLongitude();

    /**
     * Returns the latitude of this point.
     *
     * @return the latitude of this point
     */
    Double getLatitude();

    static Point of(final Double longitude, Double latitude) {
        return new PointImpl(Arrays.asList(longitude, latitude));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy