LatLng
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
不可变类,表示一对纬度和经度坐标,以度为单位存储。
继承的常量摘要
继承自 android.os.Parcelable 接口
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
公共构造函数摘要
|
LatLng(双纬度,双经度) 使用指定的纬度和经度构造 LatLng,以度为单位。
|
继承的方法摘要
继承自类 java.lang.Object
布尔值
|
equals(对象 arg0)
|
final Class<?>
|
getClass()
|
整数
|
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
字符串
|
toString()
|
final void |
wait(long arg0、int arg1)
|
final void |
wait (long arg0)
|
final void |
wait()
|
继承自 android.os.Parcelable 接口
abstract int |
describeContents()
|
抽象
无效
|
writeToParcel(Parcel arg0、int arg1)
|
字段
公开
最终
双
纬度
纬度,以度为单位。此值在 [-90, 90] 范围内。
公开
最终
双
经度
经度,以度为单位。此值在 [-180, 180) 范围内。
公共构造函数
public
LatLng
(双纬度,双经度)
使用指定的纬度和经度构造 LatLng,以度为单位。
参数
latitude |
点的纬度。它将被限制在 -90 度(含)和 +90 度(含)之间。 |
longitude |
点的经度。此值将被标准化为 -180 度(含)和 +180 度(不含)之间。
|
公共方法
public boolean equals (Object o)
用于测试此 LatLng
是否等于另一个。
当且仅当其纬度按位相等且经度等于按位时,才会被视为两个点相等。这意味着,就几何距离而言,两个非常接近的 LatLng
可能不会被视为 .equal()
。
public String
toString
()
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-11-18。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]