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

com.bikeemotion.common.spatial.GeoPoint Maven / Gradle / Ivy

/**
 * Copyright (C) Bikeemotion
 * 2014
 *
 * The reproduction, transmission or use of this document or its contents is not
 * permitted without express written authorization. All rights, including rights
 * created by patent grant or registration of a utility model or design, are
 * reserved. Modifications made to this document are restricted to authorized
 * personnel only. Technical specifications and features are binding only when
 * specifically and expressly agreed upon in a written contract.
 */
package com.bikeemotion.common.spatial;

import java.io.Serializable;

public class GeoPoint extends GeoShape implements Serializable {
  private Double latitude;

  private Double longitude;

  public Double getLatitude() {
    return latitude;
  }

  public void setLatitude(Double latitude) {
    this.latitude = latitude;
  }

  public Double getLongitude() {
    return longitude;
  }

  public void setLongitude(Double longitude) {
    this.longitude = longitude;
  }

  public String toWkt() {
    return String.format("POINT (%s %s)", this.getLongitude(),
        this.getLatitude());
  }

  public GeoPoint() {
  }

  public GeoPoint(Double longitude, Double latitude) {
    this.setLongitude(longitude);
    this.setLatitude(latitude);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy