timetable-extension #1
7
bplan/bplan.go
Normal file
7
bplan/bplan.go
Normal file
@ -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 {}
|
3
bplan/fetch.go
Normal file
3
bplan/fetch.go
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package bplan
|
||||||
|
|
||||||
|
// Fetch BPLAN data - nothing more, nothing less
|
13
bplan/types.go
Normal file
13
bplan/types.go
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package bplan
|
||||||
|
|
||||||
|
type TiplocLatLong struct {
|
||||||
|
Tiploc string
|
||||||
|
Latitude float64
|
||||||
|
Longitude float64
|
||||||
|
}
|
||||||
|
|
||||||
|
type TiplocOS struct {
|
||||||
|
Tiploc string
|
||||||
|
Easting int64
|
||||||
|
Northing int64
|
||||||
|
}
|
3
coordinates/coordinates.go
Normal file
3
coordinates/coordinates.go
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package coordinates
|
||||||
|
|
||||||
|
// Converts, fairly roughly between OS and GPS coordinates
|
Loading…
Reference in New Issue
Block a user