public class GeoLocation
extends java.lang.Object
This class represents the geo-location values. It can be used to dispatch the location updates to the creative.
| Modifier and Type | Field and Description |
|---|---|
float |
accuracy |
double |
altitude |
float |
heading |
double |
latitude |
double |
longitude |
float |
speed |
int |
watchID |
| Constructor and Description |
|---|
GeoLocation(double latitude,
double longitude,
double altitude,
float accuracy,
float heading,
float speed,
int watchID)
Constructs a new instance of geo-location object with the given parameters.
|
GeoLocation(android.location.Location location)
Constructs a new instance of geo-location object with the given parameter.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAccuracy() |
double |
getAltitude() |
float |
getHeading() |
double |
getLatitude() |
double |
getLongitude() |
float |
getSpeed() |
int |
getWatchID() |
public double latitude
public double longitude
public double altitude
public float accuracy
public float heading
public float speed
public int watchID
public GeoLocation(double latitude,
double longitude,
double altitude,
float accuracy,
float heading,
float speed,
int watchID)
latitude - The value of latitude.longitude - The value of longitude.altitude - The value of altitude.accuracy - The accuracy of the geo-location values.heading - The value of heading.speed - The value of velocity.watchID - A watch identifier which defined by a creative command.public GeoLocation(android.location.Location location)
location - The value of current location!public double getLatitude()
public double getLongitude()
public double getAltitude()
public float getAccuracy()
public float getHeading()
public float getSpeed()
public int getWatchID()