GMTSLatLng 클래스 참조
개요
위도와 경도를 나타내는 객체입니다.
GMTCImmutableData를 상속합니다.
를 탭합니다. 공개 멤버 함수 | |
(instancetype) | - initWithLatitude:longitude: |
지정된 `latitude` 및 `latitude'로 객체를 초기화합니다. | |
(CLLocationCoordinate2D) | - 좌표 |
현재 GMTSLatLng에서 CLLocationCoordinate2D를 만들고 반환합니다. | |
(CLLocationDistance) | - distanceFromLocation: |
지정된 latlng에서 현재 위치까지의 측면 거리를 가져옵니다. | |
(BOOL) | - ismostEqual: |
broadcast receiver가 상수 GMTSLatLngDegreeAlmostEqualTolerance 에 따라 지정된 다른 GMTSLatLng 객체와 거의 동일한지 나타냅니다. | |
를 탭합니다. 정적 공개 멤버 함수 | |
(instancetype) | + latLngFromCoordinate: |
지정된 CLLocationCoordinate2D에서 초기화된 GMTSLatLng를 만들고 반환합니다. | |
를 탭합니다. 속성 | |
이중 | latitude |
객체와 연결된 위도입니다. | |
이중 | longitude |
객체에 연결된 경도입니다. |
구성원 기능 문서
+ (인스턴스 유형) latLngFromCoordinate: | (CLLocationCoordinate2D) | 좌표 |
지정된 CLLocationCoordinate2D에서 초기화된 GMTSLatLng를 만들고 반환합니다.
- (인스턴스 유형) initWithLatitude: | (2배) | latitude | |
경도: | (2배) | 경도 | |
지정된 `latitude` 및 `latitude'로 객체를 초기화합니다.
- (CLLocationCoordinate2D) 좌표 |
현재 GMTSLatLng에서 CLLocationCoordinate2D를 만들고 반환합니다.
- 비고:
- 용도 .
initWithLatitude:longitude:
- (CLLocationDistance) distanceFromLocation: | (GMTSLatLng *) | 위도 경도 |
지정된 latlng에서 현재 위치까지의 측면 거리를 가져옵니다.
- (BOOL) ismostEqual: | (Null 허용 GMTSLatLng *) | 위도 경도 |
broadcast receiver가 상수 GMTSLatLngDegreeAlmostEqualTolerance
에 따라 지정된 다른 GMTSLatLng
객체와 거의 동일한지 나타냅니다.
속성 문서
- (배) 위도 [read, assign] |
객체와 연결된 위도입니다.
- (배) 경도 [read, assign] |
객체에 연결된 경도입니다.