public class GeoObject extends ArObject
限定符和类型 | 方法和说明 |
---|---|
double |
calculateDistanceMeters(double longitude, double latitude)
计算当前对象与另一个对象之前距离。
|
double |
calculateDistanceMeters(GeoObject geo)
计算当前对象与另一个对象之前距离。
|
double |
getAltitude()
获取海拔高度
|
double |
getLatitude()
获取纬度
|
double |
getLongitude()
获取经度
|
void |
setGeoPosition(double latitude, double longitude)
设置几何对象位置
|
void |
setGeoPosition(double latitude, double longitude, double altitude)
设置几何对象位置
|
void |
setLocation(android.location.Location location)
设置几何对象位置
|
getAngle, getBottomLeft, getBottomRight, getDistanceFromUser, getId, getInfo, getName, getPosition, getTopLeft, getTopRight, isVisible, setAngle, setAngle, setDistanceFromUser, setInfo, setName, setPosition, setPosition, setVisible
public GeoObject(long id)
id
- ID.public GeoObject()
public void setGeoPosition(double latitude, double longitude)
latitude
- 纬度longitude
- 经度public void setGeoPosition(double latitude, double longitude, double altitude)
latitude
- 纬度longitude
- 经度altitude
- 海拔public double getLongitude()
public double getAltitude()
public double getLatitude()
public void setLocation(android.location.Location location)
location
- 位置信息public double calculateDistanceMeters(GeoObject geo)
geo
- 另一个对象public double calculateDistanceMeters(double longitude, double latitude)
longitude
- 经度latitude
- 纬度