Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { XMLName xml.Name `xml:"datainfo"` Items []*Prediction `xml:"data>item"` State string `xml:"state"` StationType string `xml:"stationtype"` StationID string `xml:"stationid"` }
Location holds station information and the tide predictions
func (*Location) FindNearestPrediction ¶
func (loc *Location) FindNearestPrediction(date string) *Prediction
FindNearestPrediction finds the closest prediction to the provided date, using binary search until we move to a smarter data structure
type ObservationHolder ¶
ObservationHolder maps a station id to the location
func (*ObservationHolder) LoadDataStore ¶
func (holder *ObservationHolder) LoadDataStore(dir string) error
LoadDataStore loads all prediction files in the given directory
Click to show internal directories.
Click to hide internal directories.