public class LatLng extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<LatLng> |
CREATOR |
static LatLng |
INVALID
|
double |
latitude
위도.
|
double |
longitude
경도.
|
static double |
MAXIMUM_LATITUDE
위도 좌표의 최댓값.
|
static double |
MAXIMUM_LONGITUDE
경도 좌표의 최댓값.
|
static double |
MINIMUM_LATITUDE
위도 좌표의 최솟값.
|
static double |
MINIMUM_LONGITUDE
경도 좌표의 최솟값.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
LatLng(double latitude,
double longitude)
위도와 경도 값을 이용하여 좌표를 생성합니다.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
double |
distanceTo(LatLng other)
다른 좌표와의 거리를 구하여 반환합니다.
|
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
isInCoverage()
해당 좌표가 좌표계 범위 안에 있는지 여부를 반환합니다.
|
boolean |
isValid()
유효한 좌표인지 여부를 반환합니다.
|
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final LatLng INVALID
public static final double MINIMUM_LATITUDE
public static final double MAXIMUM_LATITUDE
public static final double MINIMUM_LONGITUDE
public static final double MAXIMUM_LONGITUDE
public static final Parcelable.Creator<LatLng> CREATOR
public final double latitude
public final double longitude
public LatLng(double latitude, double longitude)
latitude
- Latitude in degreeslongitude
- Longitude in degreespublic boolean isValid()
public boolean isInCoverage()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
public double distanceTo(LatLng other)
other
- 거리를 잴 다른 좌표.© 2019. iNavi Systems Corp. All rights reserved.