Skip to content

Commit

Permalink
Expose GetJourneyPlannerItinerary as interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jdheyburn committed Jul 12, 2020
1 parent c307a31 commit 9efebf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type Api interface {
SearchStopPoints(string) (*[]EntityMatchedStop, error)
SearchStopPointsWithModes(string, []string) (*[]EntityMatchedStop, error)
GetStopPointForID(string) (*StopPointAPIResponse, error)
GetJourneyPlannerItinerary(JourneyPlannerQuery) (*JourneyPlannerItineraryResult, error)
}

// Client holds information necessary to make a request to your API
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ type FareTap struct {
// FareTapDetails represents Tfl.Api.Presentation.Entities.JourneyPlanner.FareTapDetails
type FareTapDetails struct {
ModeType string `json:"modeType"`
TapTimestamp time.Time `json:"tagTimestamp"`
TapTimestamp time.Time `json:"tapTimestamp"`
}

0 comments on commit 9efebf4

Please sign in to comment.