object S2Utilities
Enclosing objects for com.github.dmarcous.s2utils.s2.S2Utilities methods for handling S2Cells and related S2 family objects
- Alphabetic
- By Inheritance
- S2Utilities
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAllCellNeighbours(cellToken: String): List[S2CellId]
Get a list of all cell's immediate neighbours on the same level
Get a list of all cell's immediate neighbours on the same level
- cellToken
S2Cell full token
- returns
list of neighbours represented as S2CellId objects
-
def
getAllCellNeighbours(cell: S2Cell): List[S2CellId]
Get a list of all cell's immediate neighbours on the same level
Get a list of all cell's immediate neighbours on the same level
- cell
S2Cell object
- returns
list of neighbours represented as S2CellId objects
-
def
getAllCellNeighbours(cellId: S2CellId): List[S2CellId]
Get a list of all cell's immediate neighbours on the same level
Get a list of all cell's immediate neighbours on the same level
- cellId
S2CellId object
- returns
list of neighbours represented as S2CellId objects
-
def
getAllCellNeighboursTokens(cellToken: String): List[String]
Get a list of all cell's immediate neighbours on the same level - full token representations
Get a list of all cell's immediate neighbours on the same level - full token representations
- cellToken
S2Cell full token
- returns
list of neighbours represented as S2Cell full tokens
-
def
getAllCellNeighboursTokens(cell: S2Cell): List[String]
Get a list of all cell's immediate neighbours on the same level - full token representations
Get a list of all cell's immediate neighbours on the same level - full token representations
- cell
S2Cell object
- returns
list of neighbours represented as S2Cell full tokens
-
def
getAllCellNeighboursTokens(cellId: S2CellId): List[String]
Get a list of all cell's immediate neighbours on the same level - full token representations
Get a list of all cell's immediate neighbours on the same level - full token representations
- cellId
S2CellId object
- returns
list of neighbours represented as S2Cell full tokens
-
def
getCellCenter(cellToken: String): (Double, Double)
Get center coordinate of cell (longitude, latitude)
Get center coordinate of cell (longitude, latitude)
- cellToken
S2Cell full token
- returns
cell's center coordinate tuple (longitude, latitude)
-
def
getCellCenter(cell: S2Cell): (Double, Double)
Get center coordinate of cell (longitude, latitude)
Get center coordinate of cell (longitude, latitude)
- cell
S2Cell object
- returns
cell's center coordinate tuple (longitude, latitude)
-
def
getCellCenter(cellId: S2CellId): (Double, Double)
Get center coordinate of cell (longitude, latitude)
Get center coordinate of cell (longitude, latitude)
- cellId
S2CellId object
- returns
cell's center coordinate tuple (longitude, latitude)
-
def
getCellParent(cellToken: String): String
Get immediate (current level - 1) containing cell (parent)
Get immediate (current level - 1) containing cell (parent)
- cellToken
full token string representation
- returns
parent S2Cell full token
-
def
getCellParent(cellToken: String, level: Int): String
Get containing cell (parent) at a given level
Get containing cell (parent) at a given level
- cellToken
full token string representation
- level
containing S2Cell's level
- returns
parent S2Cell full token
-
def
getCellParent(cell: S2Cell): S2Cell
Get immediate (current level - 1) containing cell (parent)
Get immediate (current level - 1) containing cell (parent)
- cell
S2CellId object
- returns
parent S2Cell object
-
def
getCellParent(cell: S2Cell, level: Int): S2Cell
Get containing cell (parent) at a given level
Get containing cell (parent) at a given level
- cell
S2Cell object
- level
containing S2Cell's level
- returns
parent S2Cell object
-
def
getCellParent(cellId: S2CellId): S2CellId
Get immediate (current level - 1) containing cell (parent)
Get immediate (current level - 1) containing cell (parent)
- cellId
S2CellId object
- returns
parent S2CellId object
-
def
getCellParent(cellId: S2CellId, level: Int): S2CellId
Get containing cell (parent) at a given level
Get containing cell (parent) at a given level
- cellId
S2CellId object
- level
containing S2Cell's level
- returns
parent S2CellId object
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getLevelForArea(metricArea: Double): Int
Get minimum cell level enclosing this metric area (level)
Get minimum cell level enclosing this metric area (level)
- metricArea
area in squared meters to be contained by returned level
- returns
minimum cell level enclosing this metric area, such that each cell is approximately this area.
-
def
getS2CellFromFullToken(cellToken: String): S2Cell
Get cell object from a unique representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
Get cell object from a unique representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
- cellToken
full token string representation
- returns
S2Cell object
-
def
getS2CellFullToken(cell: S2Cell): String
Get cell unique string representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
Get cell unique string representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
- cell
S2Cell object
- returns
full token string representation
-
def
getS2CellFullToken(cellId: S2CellId): String
Get cell unique string representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
Get cell unique string representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
- cellId
S2CellId object
- returns
full token string representation
-
def
getS2CellIdFromFullToken(cellToken: String): S2CellId
Get cell object from a unique representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
Get cell object from a unique representation (= full token) Full token is as string representation of the cell's ID as a "bigInt" numeric
- cellToken
full token string representation
- returns
S2CellId object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )