GMTSLatLng 클래스 참조
개요
위도와 경도를 나타내는 객체입니다.
GMTCImmutableData를 상속합니다.
공개 멤버 함수 | |
(인스턴스 유형) | - initWithLatitude:longitude: |
지정된 `위도` 및 `경도'가 있는 객체를 초기화합니다. | |
(CLLocationCoordinate2D) | - 좌표 |
현재 GMTSLatLng에서 CLLocationCoordinate2D를 만들고 반환합니다. | |
(CLLocationDistance) | - distanceFromLocation: |
지정된 latlng에서 현재 위치까지의 측면 거리를 가져옵니다. | |
(BOOL) | - 같음: |
수신기가 상수 GMTSLatLngDegreeAlmostEqualTolerance 를 기반으로 지정된 다른 GMTSLatLng 객체와 거의 같은지 나타냅니다. | |
정적 공개 멤버 함수 | |
(인스턴스 유형) | + latLngFromCoordinate: |
지정된 CLLocationCoordinate2D에서 초기화된 GMTSLatLng를 만들고 반환합니다. | |
속성 | |
double | latitude |
객체와 연결된 위도입니다. | |
double | longitude |
객체와 연결된 경도입니다. |
멤버 함수 문서
+ (인스턴스 유형) latLngFromCoordinate: | (CLLocationCoordinate2D) | 좌표 |
지정된 CLLocationCoordinate2D에서 초기화된 GMTSLatLng를 만들고 반환합니다.
- (instancetype) initWithLatitude: | (2배) | latitude | |
longitude: | (2배) | longitude | |
지정된 `위도` 및 `경도'가 있는 객체를 초기화합니다.
- (CLLocationCoordinate2D) 좌표 |
현재 GMTSLatLng에서 CLLocationCoordinate2D를 만들고 반환합니다.
- 설명:
- 용도 .
initWithLatitude:longitude:
- (CLLocationDistance) distanceFromLocation: | (GMTSLatLng *) | 위도/경도 |
지정된 latlng에서 현재 위치까지의 측면 거리를 가져옵니다.
- (BOOL) 같음: | (null 허용 GMTSLatLng *) | 위도/경도 |
수신기가 상수 GMTSLatLngDegreeAlmostEqualTolerance
를 기반으로 지정된 다른 GMTSLatLng
객체와 거의 같은지 나타냅니다.
부동산 관련 문서
- (이중) 위도 [read, assign] |
객체와 연결된 위도입니다.
- (이중) longitude [read, assign] |
객체와 연결된 경도입니다.