com.esri.core.gps
Class GeoCoordinate

java.lang.Object
  extended by com.esri.core.gps.GeoCoordinate
Direct Known Subclasses:
GpsGeoCoordinate

public class GeoCoordinate
extends Object

Class to hold information regarding geo-coordinate.


Field Summary
protected  double altitude
          The altitude in meters.
protected  double course
          The direction of travel, rather than orientation.
protected  double horizontalAccuracy
           
protected  double latitude
          Latitude in WGS84 system.
protected  double longitude
          Longitude in WGS84 system.
protected  double speed
          The speed measured in meters per second (TODO: check this).
protected  double verticalAccuracy
           
 
Constructor Summary
GeoCoordinate()
           
 
Method Summary
 double getAltitude()
           
 double getCourse()
           
 double getDistanceTo(GeoCoordinate other)
          Returns the distance between this and another GeoCoordinate().
 double getHorizontalAccuracy()
           
 double getLatitude()
           
 double getLongitude()
           
 double getSpeed()
           
 double getVerticalAccuracy()
           
 void setAltitude(double altitude)
           
 void setCourse(double course)
           
 void setHorizontalAccuracy(double horizontalAccuracy)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setSpeed(double speed)
           
 void setVerticalAccuracy(double verticalAccuracy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latitude

protected double latitude
Latitude in WGS84 system. Ranges from -90.0 to 90.0.


longitude

protected double longitude
Longitude in WGS84 system. Range from -180.0 to 180.0.


altitude

protected double altitude
The altitude in meters.


speed

protected double speed
The speed measured in meters per second (TODO: check this). May be negative, 0, positive. A negative speed can indicate moving in reverse.


course

protected double course
The direction of travel, rather than orientation. This parameter is measured in degrees relative to true north. Must range from 0 to 360.0.


horizontalAccuracy

protected double horizontalAccuracy

verticalAccuracy

protected double verticalAccuracy
Constructor Detail

GeoCoordinate

public GeoCoordinate()
Method Detail

getLatitude

public double getLatitude()
Returns:
latitude

setLatitude

public void setLatitude(double latitude)
Parameters:
{@link - #latitude}

getLongitude

public double getLongitude()
Returns:
longitude

setLongitude

public void setLongitude(double longitude)
Parameters:
{@link - #longitude}

getAltitude

public double getAltitude()
Returns:
altitude

setAltitude

public void setAltitude(double altitude)
Parameters:
{@link - #altitude}

getSpeed

public double getSpeed()
Returns:
speed

setSpeed

public void setSpeed(double speed)
Parameters:
{@link - #speed}

getCourse

public double getCourse()
Returns:
course

setCourse

public void setCourse(double course)
Parameters:
{@link - #course}

getHorizontalAccuracy

public double getHorizontalAccuracy()

setHorizontalAccuracy

public void setHorizontalAccuracy(double horizontalAccuracy)

getVerticalAccuracy

public double getVerticalAccuracy()

setVerticalAccuracy

public void setVerticalAccuracy(double verticalAccuracy)

getDistanceTo

public double getDistanceTo(GeoCoordinate other)
Returns the distance between this and another GeoCoordinate().

Parameters:
other - the other GeoCoordinate() to which the distance is to be calculated.
Returns:
the distance between this and another GeoCoordinate(), in meters; -1 if the other GeoCoordinate() is null.


Copyright © 2012. All Rights Reserved.