GeoMathUtils

object GeoMathUtils

Math utilities for calculations related

See https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Implementations

Types

Compass
Link copied to clipboard
enum Compass : Enum<GeoMathUtils.Compass>

Functions

getAdjacentTile
Link copied to clipboard
fun getAdjacentTile(tile: TileInformation, compass: GeoMathUtils.Compass): TileInformation

Get adjacent tile by compass direction.

getDistanceToTileBorderSide
Link copied to clipboard

Get distance to the tile border on the side, based on the given heading.

getTileCount
Link copied to clipboard
fun getTileCount(zoom: Int): Int
getValues
Link copied to clipboard
fun getValues(feature: <ERROR CLASS>, layer: <ERROR CLASS>): HashMap<String, String>
lat2tiley
Link copied to clipboard
fun lat2tiley(lat: Double, zoom: Int): Int
lat2y
Link copied to clipboard
fun lat2y(lat: Double, zoom: Int): Double
long2tilex
Link copied to clipboard
fun long2tilex(lon: Double, zoom: Int): Int
long2x
Link copied to clipboard
fun long2x(lon: Double, zoom: Int): Double
tilex2long
Link copied to clipboard
fun tilex2long(tileX: Double, zoom: Int): Double
tiley2lat
Link copied to clipboard
fun tiley2lat(tileY: Double, zoom: Int): Double
toDegrees
Link copied to clipboard
fun toDegrees(rad: Double): Double
toRadian
Link copied to clipboard
fun toRadian(degrees: Double): Double