Documentation ¶
Index ¶
- type GridPoint
- func (gp GridPoint) GetDecimalLat() (dLat string)
- func (gp GridPoint) GetDecimalLong() (dLong string)
- func (gp GridPoint) GetDistance(lat, long string) (distance float64, err error)
- func (gp GridPoint) GetFullEasting() (easting string)
- func (gp GridPoint) GetFullNorthing() (northing string)
- func (gp GridPoint) GetLatSeconds() (secs string)
- func (gp GridPoint) GetLongSeconds() (secs string)
- type MapGrid
- type TasMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GridPoint ¶
type GridPoint struct { MapName string // contains filtered or unexported fields }
GridPoint holds all the necessary information pertaining to a grid point, calculated from the name of the map provided and the three-figure easting and northing
func NewGridPoint ¶
NewGridPoint creates a GridPoint from the supplied map name and 3-digit easting and northing, and calculates the full easting and northing, as well as the latitude and longitude of the record in decimal degrees and degrees, minutes and seconds
func (GridPoint) GetDecimalLat ¶
GetDecimalLat returns the latitude in decimal degrees of the grid point as a string
func (GridPoint) GetDecimalLong ¶
GetDecimalLong returns the longitude in decimal degrees of the grid point as a string
func (GridPoint) GetDistance ¶
GetDistance takes a latitude and longitude in decimal degrees and calculates the distance of that point to the GridPoint, in meters
func (GridPoint) GetFullEasting ¶
GetFullEasting returns the full-length easting of the grid point as a string
func (GridPoint) GetFullNorthing ¶
GetFullNorthing returns the full-length northing of the grid point as a string
func (GridPoint) GetLatSeconds ¶
GetLatSeconds returns the seconds reading of the grid point's latitude as a string
func (GridPoint) GetLongSeconds ¶
GetLongSeconds returns the seconds reading of the grid point's longitude as a string