Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccessToken(apikey string) (string, error)
- func LatLong2UTM(lat, long float64) (east float64, north float64)
- func UTM2LatLong(east, north float64) (lat float64, long float64)
- type Box
- type Grid
- func (g Grid) At(row, col int) int
- func (g Grid) Draw(cell, margin int) *image.Gray
- func (g Grid) Height() int
- func (g Grid) Incr(row, col int)
- func (g Grid) IncrUTM(east, north float64)
- func (g Grid) Max() int
- func (g Grid) Set(row, col, val int)
- func (g Grid) String() string
- func (g Grid) Width() int
- type Vehicle
Constants ¶
View Source
const ( GBG_LAT = 57.708870 GBG_LON = 11.974560 )
Variables ¶
View Source
var ( // A square grid on top of Gothenburg BOX = GeoBox(GBG_LAT, GBG_LON, 10_000) )
View Source
var ( // UTM for Sweden UTM = wgs84.UTM(32, true) )
Functions ¶
func GetAccessToken ¶
func LatLong2UTM ¶
func UTM2LatLong ¶
Types ¶
type Box ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
type Vehicle ¶
type Vehicle struct { // Some kind of ID. // Occurs across requests but other fields can be different // even if this is the same. Does it identify a vehicle? Gid string // "Y*1e6" in Västtrafiks API, increases north. Lat float64 // "X*1e6" in Västtrafiks API, increases east. Long float64 // Common name of transport. Name string // When this data was retrieved. Time time.Time }
Click to show internal directories.
Click to hide internal directories.