Skip to content

Commit

Permalink
Update table.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmichaelchen authored May 23, 2022
1 parent 435fc3e commit 8459892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type TableRequest struct {
Profile string
Coordinates Geometry
Sources, Destinations []int
Annotations []string
}

// TableResponse resresents a response from the table method
Expand All @@ -21,6 +22,9 @@ func (r TableRequest) request() *request {
if len(r.Destinations) > 0 {
opts.addInt("destinations", r.Destinations...)
}
if len(r.Annotations) > 0 {
opts.add("annotations", r.Annotations...)
}

return &request{
profile: r.Profile,
Expand Down

0 comments on commit 8459892

Please sign in to comment.