diff --git a/bplan/bplan.go b/bplan/bplan.go new file mode 100644 index 0000000..2a0c6e9 --- /dev/null +++ b/bplan/bplan.go @@ -0,0 +1,7 @@ +package bplan + +// Returns: a slice of objects containing a TIPLOC, Latitude and Longitude +func GetTiplocLocations() []TiplocLatLong {} + +// Returns: a slice of objects containing a TIPLOC, Easting and Northing +func GetTiplocLocationsOS() []TiplocOS {} diff --git a/bplan/fetch.go b/bplan/fetch.go new file mode 100644 index 0000000..6aead03 --- /dev/null +++ b/bplan/fetch.go @@ -0,0 +1,3 @@ +package bplan + +// Fetch BPLAN data - nothing more, nothing less diff --git a/bplan/types.go b/bplan/types.go new file mode 100644 index 0000000..9fe9f6d --- /dev/null +++ b/bplan/types.go @@ -0,0 +1,13 @@ +package bplan + +type TiplocLatLong struct { + Tiploc string + Latitude float64 + Longitude float64 +} + +type TiplocOS struct { + Tiploc string + Easting int64 + Northing int64 +} diff --git a/coordinates/coordinates.go b/coordinates/coordinates.go new file mode 100644 index 0000000..d54c7d1 --- /dev/null +++ b/coordinates/coordinates.go @@ -0,0 +1,3 @@ +package coordinates + +// Converts, fairly roughly between OS and GPS coordinates