S2Index
geoToS2
(longitude, latitude) 相对应的 S2 点索引。
语法
- S2 点索引。UInt64。
Query
Response
s2ToGeo
(longitude, latitude)。
语法
s2index— S2 Index。UInt64。
Query
Response
s2GetNeighbors
s2index— S2 索引。UInt64。
Query
Response
s2CellsIntersect
siIndex1,s2index2— S2 Index。UInt64。
Query
Response
s2CapContains
Query
Response
s2CapUnion
Query
Response
s2RectAdd
S2LatLngRect 的 S2Region 类型来表示,它表示纬经度空间中的一个矩形。
语法
s2PointLow— 与该矩形对应的较低 S2 点索引。UInt64s2PointHigh— 与该矩形对应的较高 S2 点索引。UInt64s2Point— 目标 S2 点索引,边界矩形应扩展以将其包含在内。UInt64
Query
Response
s2RectContains
S2LatLngRect 的 S2Region 类型表示,用于表示纬度-经度空间中的矩形。
语法
s2PointLow— 与该矩形对应的较小 S2 点索引。UInt64。s2PointHigh— 与该矩形对应的较大 S2 点索引。UInt64。s2Point— 目标 S2 点索引。UInt64。
1— 如果该矩形包含给定的 S2 点。0— 如果该矩形不包含给定的 S2 点。
Query
Response
s2RectUnion
S2LatLngRect 的 S2Region 类型表示,用于表示经纬度空间中的矩形。
语法
s2Rect1PointLow,s2Rect1PointHi— 对应第一个矩形的低位和高位 S2 点索引值。UInt64s2Rect2PointLow,s2Rect2PointHi— 对应第二个矩形的低位和高位 S2 点索引值。UInt64
Query
Response
s2RectIntersection
S2LatLngRect 的 S2Region 类型表示,它表示纬度-经度空间中的矩形。
语法
s2Rect1PointLow,s2Rect1PointHi— 分别对应第一个矩形的低位和高位 S2 点索引。UInt64。s2Rect2PointLow,s2Rect2PointHi— 分别对应第二个矩形的低位和高位 S2 点索引。UInt64。
s2UnionRect2PointLow— 与包含给定矩形交集的矩形对应的低位 S2 单元 ID。UInt64。s2UnionRect2PointHi— 与包含给定矩形交集的矩形对应的高位 S2 单元 ID。UInt64。
Query
Response