class DJILatLng
Package: com.dji.mapkit.core.models
Description:
Represents a point which includes latitude, longitude, altitude, and accuracy info on a map.
Class Members:
method DJILatLng
DJILatLng(double latitude, double longitude)
Package: com.dji.mapkit.core.models
Description:
Creates a new DJILatLng
object with the coordinates (latitude, longitude).
double latitude The latitude of the map point. double longitude The longitude of the map point.
method DJILatLng
DJILatLng(double latitude, double longitude, double altitude)
Package: com.dji.mapkit.core.models
Description:
Creates a new DJILatLng
object with the coordinates (latitude, longitude and altitude).
double latitude The latitude of the map point. double longitude The longitude of the map point. double altitude The altitude of the map point.
method DJILatLng
DJILatLng(double latitude, double longitude, double altitude, float accuracy)
Package: com.dji.mapkit.core.models
Description:
Creates a new DJILatLng
object with four related parameters.
double latitude The latitude of the map point. double longitude The longitude of the map point. double altitude The altitude of the map point. float accuracy The accuracy of the map point.
method DJILatLng
DJILatLng(double latitude, double longitude, double altitude, float accuracy, long time)
Package: com.dji.mapkit.core.models
Description:
Creates a new LatLng object with five related parameters.
double latitude The latitude of the map point. double longitude The longitude of the map point. double altitude The altitude of the map point. float accuracy The accuracy of the map point. long time The time of the map point.
method DJILatLng
DJILatLng(double latitude, double longitude, double altitude, float accuracy, long time, long elapsedRealtimeNanos)
Package: com.dji.mapkit.core.models
Description:
Creates a new LatLng object with five related parameters.
double latitude The latitude of the map point. double longitude The longitude of the map point. double altitude The altitude of the map point. float accuracy The accuracy of the map point. long time The time of the map point. long elapsedRealtimeNanos The time in elapsed real-time of the map point.
method DJILatLng
DJILatLng(DJILatLng latLng)
Package: com.dji.mapkit.core.models
Description:
Creates a new DJILatLng
object with a DJILatLng
parameter.
method getLatitude
Package: com.dji.mapkit.core.models
Description:
Gets the latitude of the map point.
Return:
double The latitude of the map point.
method setLatitude
void setLatitude (double latitude)
Package: com.dji.mapkit.core.models
Description:
Sets the latitude of the map point.
double latitude The latitude of the map point.
method getLongitude
Package: com.dji.mapkit.core.models
Description:
Gets the longitude of the map point.
Return:
double The longitude of the map point.
method setLongitude
void setLongitude (double longitude)
Package: com.dji.mapkit.core.models
Description:
Sets the longitude of the map point.
double longitude The longitude of the map point.
method getAltitude
Package: com.dji.mapkit.core.models
Description:
Gets the altitude of the map point.
Return:
double The altitude of the map point.
method getAccuracy
Package: com.dji.mapkit.core.models
Description:
Gets the accuracy of the map point.
Return:
float The accuracy of the map point.
method setAccuracy
void setAccuracy (float accuracy)
Package: com.dji.mapkit.core.models
Description:
Sets the accuracy of the map point.
float accuracy The accuracy of the map point.
method getTime
Package: com.dji.mapkit.core.models
Description:
Gets the time of the map point.
Return:
long The time of the map point.
method setTime
Package: com.dji.mapkit.core.models
Description:
Sets the time of the map point.
long time The accuracy of the point.
method getElapsedRealtimeNanos
long getElapsedRealtimeNanos ()
Package: com.dji.mapkit.core.models
Description:
Gets the time in elapsed real-time of the map point.
Return:
long The time in elapsed real-time of the point.
method setElapsedRealtimeNanos
void setElapsedRealtimeNanos (long elapsedRealtimeNanos)
Package: com.dji.mapkit.core.models
Description:
Sets the time in elapsed real-time of the map point.
long elapsedRealtimeNanos The time in elapsed real-time of the point.
method isAvailable
Package: com.dji.mapkit.core.models
Description:
Determines if this map point is valid. A valid map point has a latitude in the range [-90,90], has a longitude in the range [-180,180], and is not (0,0).
Return:
boolean true
if this map point is valid.