S2Index
geoToS2
(longitude, latitude)에 해당하는 S2 포인트 인덱스를 반환합니다.
구문
- S2 point 인덱스. UInt64.
Query
Response
s2ToGeo
(longitude, latitude)를 반환합니다.
구문
s2index— S2 인덱스. UInt64.
Query
Response
s2GetNeighbors
s2index— S2 인덱스. UInt64.
Query
Response
s2CellsIntersect
siIndex1,s2index2— S2 인덱스. UInt64.
Query
Response
s2CapContains
center— cap에 대응하는 S2 point index입니다. UInt64.degrees— cap의 반지름(도)입니다. Float64.point— S2 point index입니다. UInt64.
Query
Response
s2CapUnion
center1,center2— 두 입력 cap에 대응하는 S2 point index입니다. UInt64.radius1,radius2— 두 입력 cap의 반지름(도)입니다. Float64.
center— 두 입력 cap을 포함하는 가장 작은 cap의 중심에 대응하는 S2 point index입니다. UInt64.radius— 두 입력 cap을 포함하는 가장 작은 cap의 반지름입니다. Float64.
Query
Response
s2RectAdd
S2LatLngRect라는 S2Region 유형으로 표현됩니다.
구문
s2PointLow— 사각형에 해당하는 하한 S2 point index입니다. UInt64.s2PointHigh— 사각형에 해당하는 상한 S2 point index입니다. UInt64.s2Point— 경계 사각형이 포함하도록 확장할 대상 S2 point index입니다. UInt64.
s2PointLow— 확장된 사각형에 해당하는 하한 S2 cell id입니다. UInt64.s2PointHigh— 확장된 사각형에 해당하는 상한 S2 cell id입니다. UInt64.
Query
Response
s2RectContains
S2LatLngRect라는 S2Region 유형으로 표현됩니다.
구문
s2PointLow— 사각형에 해당하는 하한 S2 point index입니다. UInt64.s2PointHigh— 사각형에 해당하는 상한 S2 point index입니다. UInt64.s2Point— 대상 S2 point index입니다. UInt64.
1— 사각형이 지정된 S2 point를 포함하는 경우입니다.0— 사각형이 지정된 S2 point를 포함하지 않는 경우입니다.
Query
Response
s2RectUnion
S2LatLngRect라는 S2Region 유형으로 표현됩니다.
구문
s2Rect1PointLow,s2Rect1PointHi— 첫 번째 직사각형에 해당하는 Low 및 High S2 point index 값입니다. UInt64.s2Rect2PointLow,s2Rect2PointHi— 두 번째 직사각형에 해당하는 Low 및 High S2 point index 값입니다. UInt64.
s2UnionRect2PointLow— 합집합 직사각형에 해당하는 Low S2 cell id입니다. UInt64.s2UnionRect2PointHi— 합집합 직사각형에 해당하는 High S2 cell id입니다. UInt64.
Query
Response
s2RectIntersection
S2LatLngRect라는 S2Region 유형으로 표현됩니다.
구문
s2Rect1PointLow,s2Rect1PointHi— 첫 번째 직사각형에 해당하는 낮은 및 높은 S2 point index 값입니다. UInt64.s2Rect2PointLow,s2Rect2PointHi— 두 번째 직사각형에 해당하는 낮은 및 높은 S2 point index 값입니다. UInt64.
s2UnionRect2PointLow— 지정된 직사각형들의 교집합을 포함하는 직사각형에 해당하는 낮은 S2 cell id입니다. UInt64.s2UnionRect2PointHi— 지정된 직사각형들의 교집합을 포함하는 직사각형에 해당하는 높은 S2 cell id입니다. UInt64.
Query
Response