ferries

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FerriesClient

type FerriesClient struct {
	// contains filtered or unexported fields
}

func NewFerriesClient

func NewFerriesClient(wsdotClient *wsdot.WSDOTClient) (*FerriesClient, error)

func (*FerriesClient) GetVesselBasics

func (f *FerriesClient) GetVesselBasics() ([]VesselBasic, error)

func (*FerriesClient) GetVesselLocations

func (f *FerriesClient) GetVesselLocations() ([]VesselLocation, error)

type VesselBasic

type VesselBasic struct {
	VesselID        int    `json:"VesselID"`
	VesselSubjectID int    `json:"VesselSubjectID"`
	VesselName      string `json:"VesselName"`
	VesselAbbrev    string `json:"VesselAbbrev"`
	Class           struct {
		ClassID           int    `json:"ClassID"`
		ClassSubjectID    int    `json:"ClassSubjectID"`
		ClassName         string `json:"ClassName"`
		SortSeq           int    `json:"SortSeq"`
		DrawingImg        string `json:"DrawingImg"`
		SilhouetteImg     string `json:"SilhouetteImg"`
		PublicDisplayName string `json:"PublicDisplayName"`
	} `json:"Class"`
	Status     int  `json:"Status"`
	OwnedByWSF bool `json:"OwnedByWSF"`
}

type VesselLocation

type VesselLocation struct {
	VesselID                int      `json:"VesselID"`
	VesselName              string   `json:"VesselName"`
	Mmsi                    int      `json:"Mmsi"`
	DepartingTerminalID     int      `json:"DepartingTerminalID"`
	DepartingTerminalName   string   `json:"DepartingTerminalName"`
	DepartingTerminalAbbrev string   `json:"DepartingTerminalAbbrev"`
	ArrivingTerminalID      int      `json:"ArrivingTerminalID"`
	ArrivingTerminalName    string   `json:"ArrivingTerminalName"`
	ArrivingTerminalAbbrev  string   `json:"ArrivingTerminalAbbrev"`
	Latitude                float64  `json:"Latitude"`
	Longitude               float64  `json:"Longitude"`
	Speed                   float64  `json:"Speed"`
	Heading                 int      `json:"Heading"`
	InService               bool     `json:"InService"`
	AtDock                  bool     `json:"AtDock"`
	LeftDock                string   `json:"LeftDock"`
	Eta                     string   `json:"Eta"`
	EtaBasis                string   `json:"EtaBasis"`
	ScheduledDeparture      string   `json:"ScheduledDeparture"`
	OpRouteAbbrev           []string `json:"OpRouteAbbrev"`
	VesselPositionNum       int      `json:"VesselPositionNum"`
	SortSeq                 int      `json:"SortSeq"`
	ManagedBy               int      `json:"ManagedBy"`
	TimeStamp               string   `json:"TimeStamp"`
	VesselWatchShutID       int      `json:"VesselWatchShutID"`
	VesselWatchShutMsg      string   `json:"VesselWatchShutMsg"`
	VesselWatchShutFlag     string   `json:"VesselWatchShutFlag"`
	VesselWatchStatus       string   `json:"VesselWatchStatus"`
	VesselWatchMsg          string   `json:"VesselWatchMsg"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳