diff --git a/integration/pkg/api/osrm/table/options/key.go b/integration/pkg/api/osrm/table/options/key.go new file mode 100644 index 00000000000..0648b790ee6 --- /dev/null +++ b/integration/pkg/api/osrm/table/options/key.go @@ -0,0 +1,8 @@ +package options + +// Table service Query Parameter/Option Keys +const ( + KeySources = "sources" + KeyDestinations = "destinations" + KeyAnnotations = "annotations" +) diff --git a/integration/pkg/api/osrm/table/request.go b/integration/pkg/api/osrm/table/request.go new file mode 100644 index 00000000000..440672a0de1 --- /dev/null +++ b/integration/pkg/api/osrm/table/request.go @@ -0,0 +1,30 @@ +package table + +import "github.com/Telenav/osrm-backend/integration/pkg/api/osrm/coordinate" + +// Request for OSRM table service +// http://project-osrm.org/docs/v5.5.1/api/#table-service +type Request struct { + Service string + Version string + Profile string + Coordinates coordinate.Coordinates + + // options + Sources []*int + Destinations []*int + Annotations string +} + +// NewRequest create an empty table Request. +func NewRequest() *Request { + + return &Request{ + // Path + Service: "route", + Version: "v1", + Profile: "driving", + Coordinates: coordinate.Coordinates{}, + } + +} diff --git a/integration/pkg/api/osrm/table/response.go b/integration/pkg/api/osrm/table/response.go new file mode 100644 index 00000000000..eff5472eafe --- /dev/null +++ b/integration/pkg/api/osrm/table/response.go @@ -0,0 +1 @@ +package table