getDistanceToTileBorderSide

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.