Geo Math Utils
object GeoMathUtils
Content copied to clipboard
Math utilities for calculations related
See https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Implementations
Types
Compass
Link copied to clipboard
Functions
get Adjacent Tile
Link copied to clipboard
fun getAdjacentTile(tile: TileInformation, compass: GeoMathUtils.Compass): TileInformation
Content copied to clipboard
Get adjacent tile by compass direction.
get Distance To Tile Border Side
Link copied to clipboard
fun getDistanceToTileBorderSide(tile: TileInformation, location: LocationPoint, heading: GeoMathUtils.Compass): Pair<Double, GeoMathUtils.Compass>
Content copied to clipboard
Get distance to the tile border on the side, based on the given heading.
get Tile Count
Link copied to clipboard
long2tilex
Link copied to clipboard
tilex2long
Link copied to clipboard