Skip to content

Commit

Permalink
Stubbing out vehicle positions
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Oct 11, 2023
1 parent fbdade8 commit bb8a03e
Show file tree
Hide file tree
Showing 8 changed files with 333 additions and 2 deletions.
5 changes: 5 additions & 0 deletions finders/rtfinder/finder.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package rtfinder

import (
"context"
"errors"
"fmt"
"strconv"
Expand Down Expand Up @@ -49,6 +50,10 @@ func (f *Finder) StopTimezone(id int, known string) (*time.Location, bool) {
return f.lc.StopTimezone(id, known)
}

func (f *Finder) FindVehiclePositions(ctx context.Context, limit *int, where *model.VehiclePositionRequest) ([]*model.VehiclePosition, error) {
return nil, nil
}

func (f *Finder) FindTrip(t *model.Trip) *pb.TripUpdate {
topics, _ := f.lc.GetFeedVersionRTFeeds(t.FeedVersionID)
for _, topic := range topics {
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6
github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/interline-io/transitland-lib v0.13.1-0.20231007011544-9b1f7cba6634 h1:ICaVmw8XTl9Idpzabg3HtwHASkGlhRdDlqDQHmKk4gU=
github.com/interline-io/transitland-lib v0.13.1-0.20231007011544-9b1f7cba6634/go.mod h1:EnN1BuWqBAQzyIBOH+Ait7S8i4uC5fLqGzmX8FmQ2a8=
github.com/interline-io/transitland-lib v0.13.1-0.20231009233939-3f7b51b007d9 h1:gRAYhdeSN7GsDLSZvKRMNzpmAdulMKMQz8T4LxbFFps=
github.com/interline-io/transitland-lib v0.13.1-0.20231009233939-3f7b51b007d9/go.mod h1:EnN1BuWqBAQzyIBOH+Ait7S8i4uC5fLqGzmX8FmQ2a8=
github.com/jarcoal/httpmock v1.3.0 h1:2RJ8GP0IIaWwcC9Fp2BmVi8Kog3v2Hn7VXM3fTd+nuc=
Expand Down
Loading

0 comments on commit bb8a03e

Please sign in to comment.