Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CityRoutesPage ¶
type CityRoutesPage struct { Sid string Name string Routes []*RouteShort }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AllStops ¶
func (c *Client) AllStops() (*ExtAllStops, error)
func (*Client) CityRoutes ¶
func (c *Client) CityRoutes(sid string) (*CityRoutesPage, error)
type ExtAllStops ¶
type ExtAllStops struct { ErrorCode int `json:"errorCode"` ErrorMessage string `json:"errorMessage"` Data []ExtStopInfo `json:"data"` }
type ExtStopInfo ¶
type RouteShort ¶
func ParseRouteShort ¶
func ParseRouteShort(node *html.Node) (*RouteShort, error)
<td style="width:85%;"> <a href="https://www.cyprusbybus.com/RouteDetails.aspx?id=393"> <b><i>7A</i></b>, My Mall- Ipsonas Industrial Area - Leontiou EMEL Station - Old Market -TEPAK </a> </td>
type StopInfo ¶
func ParseStopInfo ¶
func ParseStopInfo(ext ExtStopInfo) (StopInfo, error)
Click to show internal directories.
Click to hide internal directories.