departures

package
v0.0.0-...-6ca850d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for departures API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new departures API client.

func (*Client) DeparturesGetForStop

func (a *Client) DeparturesGetForStop(params *DeparturesGetForStopParams) (*DeparturesGetForStopOK, error)

DeparturesGetForStop views departures for all routes from a stop

func (*Client) DeparturesGetForStopAndRoute

func (a *Client) DeparturesGetForStopAndRoute(params *DeparturesGetForStopAndRouteParams) (*DeparturesGetForStopAndRouteOK, error)

DeparturesGetForStopAndRoute views departures for a specific route from a stop

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DeparturesGetForStopAndRouteBadRequest

type DeparturesGetForStopAndRouteBadRequest struct {
	Payload *models.V3ErrorResponse
}

DeparturesGetForStopAndRouteBadRequest handles this case with default header values.

Invalid Request

func NewDeparturesGetForStopAndRouteBadRequest

func NewDeparturesGetForStopAndRouteBadRequest() *DeparturesGetForStopAndRouteBadRequest

NewDeparturesGetForStopAndRouteBadRequest creates a DeparturesGetForStopAndRouteBadRequest with default headers values

func (*DeparturesGetForStopAndRouteBadRequest) Error

func (*DeparturesGetForStopAndRouteBadRequest) GetPayload

type DeparturesGetForStopAndRouteForbidden

type DeparturesGetForStopAndRouteForbidden struct {
	Payload *models.V3ErrorResponse
}

DeparturesGetForStopAndRouteForbidden handles this case with default header values.

Access Denied

func NewDeparturesGetForStopAndRouteForbidden

func NewDeparturesGetForStopAndRouteForbidden() *DeparturesGetForStopAndRouteForbidden

NewDeparturesGetForStopAndRouteForbidden creates a DeparturesGetForStopAndRouteForbidden with default headers values

func (*DeparturesGetForStopAndRouteForbidden) Error

func (*DeparturesGetForStopAndRouteForbidden) GetPayload

type DeparturesGetForStopAndRouteOK

type DeparturesGetForStopAndRouteOK struct {
	Payload *models.V3DeparturesResponse
}

DeparturesGetForStopAndRouteOK handles this case with default header values.

Service departures from the specified stop for the specified route (and route type); departures are timetabled and real-time (if applicable).

func NewDeparturesGetForStopAndRouteOK

func NewDeparturesGetForStopAndRouteOK() *DeparturesGetForStopAndRouteOK

NewDeparturesGetForStopAndRouteOK creates a DeparturesGetForStopAndRouteOK with default headers values

func (*DeparturesGetForStopAndRouteOK) Error

func (*DeparturesGetForStopAndRouteOK) GetPayload

type DeparturesGetForStopAndRouteParams

type DeparturesGetForStopAndRouteParams struct {

	/*DateUtc
	  Filter by the date and time of the request (ISO 8601 UTC format) (default = current date and time)

	*/
	DateUtc *strfmt.DateTime
	/*Devid
	  Your developer id

	*/
	Devid *string
	/*DirectionID
	  Filter by identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id}

	*/
	DirectionID *int32
	/*Expand
	  List objects to be returned in full (i.e. expanded) - options include: all, stop, route, run, direction, disruption

	*/
	Expand []string
	/*Gtfs
	  Indicates that stop_id parameter will accept "GTFS stop_id" data

	*/
	Gtfs *bool
	/*IncludeCancelled
	  Indicates if cancelled services (if they exist) are returned (default = false) - metropolitan train only

	*/
	IncludeCancelled *bool
	/*LookBackwards
	  Indicates if filtering runs (and their departures) to those that arrive at destination before date_utc (default = false). Requires max_results > 0.

	*/
	LookBackwards *bool
	/*MaxResults
	  Maximum number of results returned

	*/
	MaxResults *int32
	/*RouteID
	  Identifier of route; values returned by Routes API - v3/routes

	*/
	RouteID string
	/*RouteType
	  Number identifying transport mode; values returned via RouteTypes API

	*/
	RouteType int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*StopID
	  Identifier of stop; values returned by Stops API

	*/
	StopID int32
	/*Token
	  Please ignore

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeparturesGetForStopAndRouteParams contains all the parameters to send to the API endpoint for the departures get for stop and route operation typically these are written to a http.Request

func NewDeparturesGetForStopAndRouteParams

func NewDeparturesGetForStopAndRouteParams() *DeparturesGetForStopAndRouteParams

NewDeparturesGetForStopAndRouteParams creates a new DeparturesGetForStopAndRouteParams object with the default values initialized.

func NewDeparturesGetForStopAndRouteParamsWithContext

func NewDeparturesGetForStopAndRouteParamsWithContext(ctx context.Context) *DeparturesGetForStopAndRouteParams

NewDeparturesGetForStopAndRouteParamsWithContext creates a new DeparturesGetForStopAndRouteParams object with the default values initialized, and the ability to set a context for a request

func NewDeparturesGetForStopAndRouteParamsWithHTTPClient

func NewDeparturesGetForStopAndRouteParamsWithHTTPClient(client *http.Client) *DeparturesGetForStopAndRouteParams

NewDeparturesGetForStopAndRouteParamsWithHTTPClient creates a new DeparturesGetForStopAndRouteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeparturesGetForStopAndRouteParamsWithTimeout

func NewDeparturesGetForStopAndRouteParamsWithTimeout(timeout time.Duration) *DeparturesGetForStopAndRouteParams

NewDeparturesGetForStopAndRouteParamsWithTimeout creates a new DeparturesGetForStopAndRouteParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeparturesGetForStopAndRouteParams) SetContext

SetContext adds the context to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetDateUtc

func (o *DeparturesGetForStopAndRouteParams) SetDateUtc(dateUtc *strfmt.DateTime)

SetDateUtc adds the dateUtc to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetDevid

func (o *DeparturesGetForStopAndRouteParams) SetDevid(devid *string)

SetDevid adds the devid to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetDirectionID

func (o *DeparturesGetForStopAndRouteParams) SetDirectionID(directionID *int32)

SetDirectionID adds the directionId to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetExpand

func (o *DeparturesGetForStopAndRouteParams) SetExpand(expand []string)

SetExpand adds the expand to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetGtfs

func (o *DeparturesGetForStopAndRouteParams) SetGtfs(gtfs *bool)

SetGtfs adds the gtfs to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetHTTPClient

func (o *DeparturesGetForStopAndRouteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetIncludeCancelled

func (o *DeparturesGetForStopAndRouteParams) SetIncludeCancelled(includeCancelled *bool)

SetIncludeCancelled adds the includeCancelled to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetLookBackwards

func (o *DeparturesGetForStopAndRouteParams) SetLookBackwards(lookBackwards *bool)

SetLookBackwards adds the lookBackwards to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetMaxResults

func (o *DeparturesGetForStopAndRouteParams) SetMaxResults(maxResults *int32)

SetMaxResults adds the maxResults to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetRouteID

func (o *DeparturesGetForStopAndRouteParams) SetRouteID(routeID string)

SetRouteID adds the routeId to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetRouteType

func (o *DeparturesGetForStopAndRouteParams) SetRouteType(routeType int32)

SetRouteType adds the routeType to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetSignature

func (o *DeparturesGetForStopAndRouteParams) SetSignature(signature *string)

SetSignature adds the signature to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetStopID

func (o *DeparturesGetForStopAndRouteParams) SetStopID(stopID int32)

SetStopID adds the stopId to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetTimeout

func (o *DeparturesGetForStopAndRouteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) SetToken

func (o *DeparturesGetForStopAndRouteParams) SetToken(token *string)

SetToken adds the token to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithContext

WithContext adds the context to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithDateUtc

WithDateUtc adds the dateUtc to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithDevid

WithDevid adds the devid to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithDirectionID

WithDirectionID adds the directionID to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithExpand

WithExpand adds the expand to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithGtfs

WithGtfs adds the gtfs to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithIncludeCancelled

func (o *DeparturesGetForStopAndRouteParams) WithIncludeCancelled(includeCancelled *bool) *DeparturesGetForStopAndRouteParams

WithIncludeCancelled adds the includeCancelled to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithLookBackwards

func (o *DeparturesGetForStopAndRouteParams) WithLookBackwards(lookBackwards *bool) *DeparturesGetForStopAndRouteParams

WithLookBackwards adds the lookBackwards to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithMaxResults

WithMaxResults adds the maxResults to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithRouteID

WithRouteID adds the routeID to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithRouteType

WithRouteType adds the routeType to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithSignature

WithSignature adds the signature to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithStopID

WithStopID adds the stopID to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithTimeout

WithTimeout adds the timeout to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WithToken

WithToken adds the token to the departures get for stop and route params

func (*DeparturesGetForStopAndRouteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeparturesGetForStopAndRouteReader

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

DeparturesGetForStopAndRouteReader is a Reader for the DeparturesGetForStopAndRoute structure.

func (*DeparturesGetForStopAndRouteReader) ReadResponse

func (o *DeparturesGetForStopAndRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeparturesGetForStopBadRequest

type DeparturesGetForStopBadRequest struct {
	Payload *models.V3ErrorResponse
}

DeparturesGetForStopBadRequest handles this case with default header values.

Invalid Request

func NewDeparturesGetForStopBadRequest

func NewDeparturesGetForStopBadRequest() *DeparturesGetForStopBadRequest

NewDeparturesGetForStopBadRequest creates a DeparturesGetForStopBadRequest with default headers values

func (*DeparturesGetForStopBadRequest) Error

func (*DeparturesGetForStopBadRequest) GetPayload

type DeparturesGetForStopForbidden

type DeparturesGetForStopForbidden struct {
	Payload *models.V3ErrorResponse
}

DeparturesGetForStopForbidden handles this case with default header values.

Access Denied

func NewDeparturesGetForStopForbidden

func NewDeparturesGetForStopForbidden() *DeparturesGetForStopForbidden

NewDeparturesGetForStopForbidden creates a DeparturesGetForStopForbidden with default headers values

func (*DeparturesGetForStopForbidden) Error

func (*DeparturesGetForStopForbidden) GetPayload

type DeparturesGetForStopOK

type DeparturesGetForStopOK struct {
	Payload *models.V3DeparturesResponse
}

DeparturesGetForStopOK handles this case with default header values.

Service departures from the specified stop for all routes of the specified route type; departures are timetabled and real-time (if applicable).

func NewDeparturesGetForStopOK

func NewDeparturesGetForStopOK() *DeparturesGetForStopOK

NewDeparturesGetForStopOK creates a DeparturesGetForStopOK with default headers values

func (*DeparturesGetForStopOK) Error

func (o *DeparturesGetForStopOK) Error() string

func (*DeparturesGetForStopOK) GetPayload

type DeparturesGetForStopParams

type DeparturesGetForStopParams struct {

	/*DateUtc
	  Filter by the date and time of the request (ISO 8601 UTC format) (default = current date and time)

	*/
	DateUtc *strfmt.DateTime
	/*Devid
	  Your developer id

	*/
	Devid *string
	/*DirectionID
	  Filter by identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id}

	*/
	DirectionID *int32
	/*Expand
	  List objects to be returned in full (i.e. expanded) - options include: all, stop, route, run, direction, disruption

	*/
	Expand []string
	/*Gtfs
	  Indicates that stop_id parameter will accept "GTFS stop_id" data

	*/
	Gtfs *bool
	/*IncludeCancelled
	  Indicates if cancelled services (if they exist) are returned (default = false) - metropolitan train only

	*/
	IncludeCancelled *bool
	/*LookBackwards
	  Indicates if filtering runs (and their departures) to those that arrive at destination before date_utc (default = false). Requires max_results > 0.

	*/
	LookBackwards *bool
	/*MaxResults
	  Maximum number of results returned

	*/
	MaxResults *int32
	/*PlatformNumbers
	  Filter by platform number at stop

	*/
	PlatformNumbers []int32
	/*RouteType
	  Number identifying transport mode; values returned via RouteTypes API

	*/
	RouteType int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*StopID
	  Identifier of stop; values returned by Stops API

	*/
	StopID int32
	/*Token
	  Please ignore

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeparturesGetForStopParams contains all the parameters to send to the API endpoint for the departures get for stop operation typically these are written to a http.Request

func NewDeparturesGetForStopParams

func NewDeparturesGetForStopParams() *DeparturesGetForStopParams

NewDeparturesGetForStopParams creates a new DeparturesGetForStopParams object with the default values initialized.

func NewDeparturesGetForStopParamsWithContext

func NewDeparturesGetForStopParamsWithContext(ctx context.Context) *DeparturesGetForStopParams

NewDeparturesGetForStopParamsWithContext creates a new DeparturesGetForStopParams object with the default values initialized, and the ability to set a context for a request

func NewDeparturesGetForStopParamsWithHTTPClient

func NewDeparturesGetForStopParamsWithHTTPClient(client *http.Client) *DeparturesGetForStopParams

NewDeparturesGetForStopParamsWithHTTPClient creates a new DeparturesGetForStopParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeparturesGetForStopParamsWithTimeout

func NewDeparturesGetForStopParamsWithTimeout(timeout time.Duration) *DeparturesGetForStopParams

NewDeparturesGetForStopParamsWithTimeout creates a new DeparturesGetForStopParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeparturesGetForStopParams) SetContext

func (o *DeparturesGetForStopParams) SetContext(ctx context.Context)

SetContext adds the context to the departures get for stop params

func (*DeparturesGetForStopParams) SetDateUtc

func (o *DeparturesGetForStopParams) SetDateUtc(dateUtc *strfmt.DateTime)

SetDateUtc adds the dateUtc to the departures get for stop params

func (*DeparturesGetForStopParams) SetDevid

func (o *DeparturesGetForStopParams) SetDevid(devid *string)

SetDevid adds the devid to the departures get for stop params

func (*DeparturesGetForStopParams) SetDirectionID

func (o *DeparturesGetForStopParams) SetDirectionID(directionID *int32)

SetDirectionID adds the directionId to the departures get for stop params

func (*DeparturesGetForStopParams) SetExpand

func (o *DeparturesGetForStopParams) SetExpand(expand []string)

SetExpand adds the expand to the departures get for stop params

func (*DeparturesGetForStopParams) SetGtfs

func (o *DeparturesGetForStopParams) SetGtfs(gtfs *bool)

SetGtfs adds the gtfs to the departures get for stop params

func (*DeparturesGetForStopParams) SetHTTPClient

func (o *DeparturesGetForStopParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the departures get for stop params

func (*DeparturesGetForStopParams) SetIncludeCancelled

func (o *DeparturesGetForStopParams) SetIncludeCancelled(includeCancelled *bool)

SetIncludeCancelled adds the includeCancelled to the departures get for stop params

func (*DeparturesGetForStopParams) SetLookBackwards

func (o *DeparturesGetForStopParams) SetLookBackwards(lookBackwards *bool)

SetLookBackwards adds the lookBackwards to the departures get for stop params

func (*DeparturesGetForStopParams) SetMaxResults

func (o *DeparturesGetForStopParams) SetMaxResults(maxResults *int32)

SetMaxResults adds the maxResults to the departures get for stop params

func (*DeparturesGetForStopParams) SetPlatformNumbers

func (o *DeparturesGetForStopParams) SetPlatformNumbers(platformNumbers []int32)

SetPlatformNumbers adds the platformNumbers to the departures get for stop params

func (*DeparturesGetForStopParams) SetRouteType

func (o *DeparturesGetForStopParams) SetRouteType(routeType int32)

SetRouteType adds the routeType to the departures get for stop params

func (*DeparturesGetForStopParams) SetSignature

func (o *DeparturesGetForStopParams) SetSignature(signature *string)

SetSignature adds the signature to the departures get for stop params

func (*DeparturesGetForStopParams) SetStopID

func (o *DeparturesGetForStopParams) SetStopID(stopID int32)

SetStopID adds the stopId to the departures get for stop params

func (*DeparturesGetForStopParams) SetTimeout

func (o *DeparturesGetForStopParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the departures get for stop params

func (*DeparturesGetForStopParams) SetToken

func (o *DeparturesGetForStopParams) SetToken(token *string)

SetToken adds the token to the departures get for stop params

func (*DeparturesGetForStopParams) WithContext

WithContext adds the context to the departures get for stop params

func (*DeparturesGetForStopParams) WithDateUtc

WithDateUtc adds the dateUtc to the departures get for stop params

func (*DeparturesGetForStopParams) WithDevid

WithDevid adds the devid to the departures get for stop params

func (*DeparturesGetForStopParams) WithDirectionID

func (o *DeparturesGetForStopParams) WithDirectionID(directionID *int32) *DeparturesGetForStopParams

WithDirectionID adds the directionID to the departures get for stop params

func (*DeparturesGetForStopParams) WithExpand

WithExpand adds the expand to the departures get for stop params

func (*DeparturesGetForStopParams) WithGtfs

WithGtfs adds the gtfs to the departures get for stop params

func (*DeparturesGetForStopParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the departures get for stop params

func (*DeparturesGetForStopParams) WithIncludeCancelled

func (o *DeparturesGetForStopParams) WithIncludeCancelled(includeCancelled *bool) *DeparturesGetForStopParams

WithIncludeCancelled adds the includeCancelled to the departures get for stop params

func (*DeparturesGetForStopParams) WithLookBackwards

func (o *DeparturesGetForStopParams) WithLookBackwards(lookBackwards *bool) *DeparturesGetForStopParams

WithLookBackwards adds the lookBackwards to the departures get for stop params

func (*DeparturesGetForStopParams) WithMaxResults

func (o *DeparturesGetForStopParams) WithMaxResults(maxResults *int32) *DeparturesGetForStopParams

WithMaxResults adds the maxResults to the departures get for stop params

func (*DeparturesGetForStopParams) WithPlatformNumbers

func (o *DeparturesGetForStopParams) WithPlatformNumbers(platformNumbers []int32) *DeparturesGetForStopParams

WithPlatformNumbers adds the platformNumbers to the departures get for stop params

func (*DeparturesGetForStopParams) WithRouteType

func (o *DeparturesGetForStopParams) WithRouteType(routeType int32) *DeparturesGetForStopParams

WithRouteType adds the routeType to the departures get for stop params

func (*DeparturesGetForStopParams) WithSignature

func (o *DeparturesGetForStopParams) WithSignature(signature *string) *DeparturesGetForStopParams

WithSignature adds the signature to the departures get for stop params

func (*DeparturesGetForStopParams) WithStopID

WithStopID adds the stopID to the departures get for stop params

func (*DeparturesGetForStopParams) WithTimeout

WithTimeout adds the timeout to the departures get for stop params

func (*DeparturesGetForStopParams) WithToken

WithToken adds the token to the departures get for stop params

func (*DeparturesGetForStopParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeparturesGetForStopReader

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

DeparturesGetForStopReader is a Reader for the DeparturesGetForStop structure.

func (*DeparturesGetForStopReader) ReadResponse

func (o *DeparturesGetForStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL