Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agencies ¶
type Agencies []Agency
func (Agencies) ToJsonAgencies ¶
func (as Agencies) ToJsonAgencies() []JsonAgency
type Agency ¶
type Agency struct { Key string Id int Name string Url string Timezone string Lang string MinLat float64 MaxLat float64 MinLon float64 MaxLon float64 }
func (Agency) ToJsonAgency ¶
func (a Agency) ToJsonAgency() JsonAgency
type JsonAgency ¶
type JsonAgency struct { Key string `json:"key"` Id int `json:"id"` Name string `json:"name"` Url string `json:"url"` Timezone string `json:"timezone"` Lang string `json:"lang"` MinLat float64 `json:"min_lat"` MaxLat float64 `json:"max_lat"` MinLon float64 `json:"min_lon"` MaxLon float64 `json:"max_lon"` }
type JsonGeoLocation ¶
type JsonRoute ¶
type JsonRoute struct { Name string `json:"name"` TripId int `json:"trip_id"` RouteType int `json:"route_type"` RouteColor string `json:"route_color"` RouteTextColor string `json:"route_text_color"` FirstStopName string `json:"first_stop_name"` LastStopName string `json:"last_stop_name"` StopTimes []string `json:"stop_times"` }
type JsonStopGroup ¶
type Route ¶
type Route struct { Name string TripId int RouteType int RouteColor string RouteTextColor string FirstStopName string LastStopName string StopTimesFull []StopTimeFull }
func (*Route) ToJsonRoute ¶
type RouteByName ¶
type RouteByName []Route
func (RouteByName) Len ¶
func (rn RouteByName) Len() int
func (RouteByName) Less ¶
func (rn RouteByName) Less(i, j int) bool
func (RouteByName) Swap ¶
func (rn RouteByName) Swap(i, j int)
type Stop ¶
type Stop struct { Id int Name string Desc string Lat string Lon string LocationType int Distance float64 Routes Routes }
func (Stop) ToStopGroup ¶
type StopGroup ¶
type StopGroup struct { Ids []int Name string Desc string Lat string Lon string LocationType int Distance float64 Routes Routes }
func (StopGroup) ToJsonStopGroup ¶
func (sg StopGroup) ToJsonStopGroup() JsonStopGroup
type StopGroupByDistance ¶
type StopGroupByDistance []StopGroup
func (StopGroupByDistance) Len ¶
func (sgbd StopGroupByDistance) Len() int
func (StopGroupByDistance) Less ¶
func (sgbd StopGroupByDistance) Less(i, j int) bool
func (StopGroupByDistance) Swap ¶
func (sgbd StopGroupByDistance) Swap(i, j int)
type StopGroups ¶
type StopGroups []StopGroup
func (StopGroups) ToJsonStopGroups ¶
func (sgs StopGroups) ToJsonStopGroups() []JsonStopGroup
type StopTimeFull ¶
type StopTimeFullByDepartureDate ¶
type StopTimeFullByDepartureDate []StopTimeFull
func (StopTimeFullByDepartureDate) Len ¶
func (stf StopTimeFullByDepartureDate) Len() int
func (StopTimeFullByDepartureDate) Less ¶
func (stf StopTimeFullByDepartureDate) Less(i, j int) bool
func (StopTimeFullByDepartureDate) Swap ¶
func (stf StopTimeFullByDepartureDate) Swap(i, j int)
type Stops ¶
type Stops []Stop
func (Stops) ToStopGroups ¶
func (ss Stops) ToStopGroups() StopGroups
Click to show internal directories.
Click to hide internal directories.