Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


oracle.adf.model.datacontrols.device
Class Location

java.lang.Object
  extended by oracle.adf.model.datacontrols.device.Location


public class Location
extends java.lang.Object

Value returned from a successful GetCurrentPosition request


Constructor Summary
Location()
           
Location(double latitude, double longitude, double altitude, double accuracy, double altitudeAccuracy, double heading, double speed, long timestamp, java.lang.String watchId)
           

 

Method Summary
 double getAccuracy()
          Accuracy level of the latitude and longitude coordinates in meters.
 double getAltitude()
          Height of the device in meters above the ellipsoid
 double getAltitudeAccuracy()
          Accuracy level of the altitude coordinate in meters.
 double getHeading()
          Direction of travel, specified in degrees counting clockwise relative to the true north.
 double getLatitude()
          Latitude in decimal degrees
 double getLongitude()
          Longitude in decimal degrees
static long getSerialversionuid()
          Serial Version UID
 double getSpeed()
          Current ground speed of the device, specified in meters per second
 long getTimestamp()
          When was this location fix created? Represent milliseconds since the Unix epoch.
 java.lang.String getWatchId()
          Which listener was this location fix created for?
 void setAccuracy(double accuracy)
          Do not use.
 void setAltitude(double altitude)
          Do not use.
 void setAltitudeAccuracy(double altitudeAccuracy)
          Do not use.
 void setHeading(double heading)
          Do not use.
 void setLatitude(double latitude)
          Do not use.
 void setLongitude(double longitude)
          Do not use.
 void setSpeed(double speed)
          Do not use.
 void setTimestamp(long timestamp)
          Do not use.
 void setWatchId(java.lang.String watchId)
          Do not use.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Location

public Location()

Location

public Location(double latitude,
                double longitude,
                double altitude,
                double accuracy,
                double altitudeAccuracy,
                double heading,
                double speed,
                long timestamp,
                java.lang.String watchId)

Method Detail

getTimestamp

public long getTimestamp()
When was this location fix created? Represent milliseconds since the Unix epoch.
Returns:
timestamp

setTimestamp

public void setTimestamp(long timestamp)
Do not use. Location objects are read-only.

getWatchId

public java.lang.String getWatchId()
Which listener was this location fix created for?
Returns:
a unique watch id

setWatchId

public void setWatchId(java.lang.String watchId)
Do not use. Location objects are read-only.

getSerialversionuid

public static long getSerialversionuid()
Serial Version UID
Returns:
UID

getAltitude

public double getAltitude()
Height of the device in meters above the ellipsoid
Returns:
altitude

setAltitude

public void setAltitude(double altitude)
Do not use. Location objects are read-only.

getLatitude

public double getLatitude()
Latitude in decimal degrees
Returns:
latitude

setLatitude

public void setLatitude(double latitude)
Do not use. Location objects are read-only.

getLongitude

public double getLongitude()
Longitude in decimal degrees
Returns:
longitude

setLongitude

public void setLongitude(double longitude)
Do not use. Location objects are read-only.

getAccuracy

public double getAccuracy()
Accuracy level of the latitude and longitude coordinates in meters.
Returns:
accuracy

setAccuracy

public void setAccuracy(double accuracy)
Do not use. Location objects are read-only.

getAltitudeAccuracy

public double getAltitudeAccuracy()
Accuracy level of the altitude coordinate in meters.
Returns:
altitude accuracy

setAltitudeAccuracy

public void setAltitudeAccuracy(double altitudeAccuracy)
Do not use. Location objects are read-only.

getHeading

public double getHeading()
Direction of travel, specified in degrees counting clockwise relative to the true north.
Returns:
heading

setHeading

public void setHeading(double heading)
Do not use. Location objects are read-only.

getSpeed

public double getSpeed()
Current ground speed of the device, specified in meters per second
Returns:
speed

setSpeed

public void setSpeed(double speed)
Do not use. Location objects are read-only.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


Copyright © 2012 Oracle. All Rights Reserved.