get Distance To Tile Border Side
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.
Return
the distance to the border in meters and the direction
Parameters
tile
the current tile
location
current precise location
heading
heading as a compass direction
Example: we are heading north, being close to the "left" border of the tile. The method should return the distance to the west border of the tile in meters together with compass direction west.