Class MercatorPosition

java.lang.Object
slash.navigation.base.BaseNavigationPosition
slash.navigation.base.MercatorPosition
All Implemented Interfaces:
NavigationPosition
Direct Known Subclasses:
BcrPosition, GoPalPosition, TourPosition

public class MercatorPosition extends BaseNavigationPosition
Represents a Mercator position in a route.
Author:
Christian Pesch
  • Field Details

    • x

      protected Long x
    • y

      protected Long y
    • description

      protected String description
  • Constructor Details

  • Method Details

    • getLongitude

      public Double getLongitude()
      Description copied from interface: NavigationPosition
      Return the longitude in the WGS84 coordinate system
      Returns:
      the longitude in the WGS84 coordinate system
    • setLongitude

      public void setLongitude(Double longitude)
    • getLatitude

      public Double getLatitude()
      Description copied from interface: NavigationPosition
      Return the latitude in the WGS84 coordinate system
      Returns:
      the latitude in the WGS84 coordinate system
    • setLatitude

      public void setLatitude(Double latitude)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getElevation

      public Double getElevation()
      Description copied from interface: NavigationPosition
      Return the elevation in meters above sea level
      Returns:
      the elevation in meters above sea level
    • setElevation

      public void setElevation(Double elevation)
    • getSpeed

      public Double getSpeed()
      Description copied from interface: NavigationPosition
      Return the speed in kilometers per hour
      Returns:
      the speed in kilometers per hour
    • setSpeed

      public void setSpeed(Double speed)
    • getTime

      public CompactCalendar getTime()
      Description copied from interface: NavigationPosition
      Return the date and time in UTC time zone
      Returns:
      the date and time in UTC time zone
    • setTime

      public void setTime(CompactCalendar time)
    • getX

      public Long getX()
    • getY

      public Long getY()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object