Skip to content

Commit

Permalink
feat: fix decoded problem related with table response
Browse files Browse the repository at this point in the history
issue: #137
  • Loading branch information
CodeBear801 committed Feb 3, 2020
1 parent c8d8bad commit 4ff73c8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions integration/pkg/api/osrm/table/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ type Response struct {
Message string `json:"message,omitempty"`
Sources []*Source `json:"sources"`
Destinations []*Destination `json:"destinations"`
Durations []*Duration `json:"durations"`
Distances []*Distance `json:"distances"`
Durations [][]*float64 `json:"durations"`
Distances [][]*float64 `json:"distances"`
}

// Source represents as way point object. All sources will be listed in order.
Expand All @@ -22,12 +22,12 @@ type Destination struct {
route.Waypoint
}

// Duration gives the travel time from specific source to all other destinations
type Duration struct {
Value []*float64
}
// // Duration gives the travel time from specific source to all other destinations
// type Duration struct {
// _ []*float64
// }

// Distance gives the travel distance from specific source to all other destinations
type Distance struct {
Value []*float64
}
// // Distance gives the travel distance from specific source to all other destinations
// type Distance struct {
// _ []*float64
// }

0 comments on commit 4ff73c8

Please sign in to comment.