Documentation
¶
Index ¶
- type EngineDetails
- type Metadata
- type OrsClient
- func (o *OrsClient) DirectionsGeoJSON(ctx context.Context, profile string, reqBody *OrsDirectionRequest) (*entities.GeoJSON, error)
- func (o *OrsClient) DirectionsJSON(ctx context.Context, profile string, reqBody *OrsDirectionRequest) (*OrsResponse, error)
- func (o *OrsClient) DirectionsRawGpx(ctx context.Context, profile string, reqBody *OrsDirectionRequest) (io.ReadCloser, error)
- type OrsClientConfig
- type OrsClientOption
- type OrsDirectionRequest
- type OrsResponse
- type Query
- type Route
- type Segment
- type Step
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineDetails ¶
type Metadata ¶
type Metadata struct { Attribution string `json:"attribution"` Service string `json:"service"` Timestamp int64 `json:"timestamp"` Query Query `json:"query"` Engine EngineDetails `json:"engine"` }
type OrsClient ¶
type OrsClient struct {
// contains filtered or unexported fields
}
func NewOrsClient ¶
func NewOrsClient(opts ...OrsClientOption) OrsClient
func (*OrsClient) DirectionsGeoJSON ¶
func (*OrsClient) DirectionsJSON ¶
func (o *OrsClient) DirectionsJSON(ctx context.Context, profile string, reqBody *OrsDirectionRequest) (*OrsResponse, error)
func (*OrsClient) DirectionsRawGpx ¶
func (o *OrsClient) DirectionsRawGpx(ctx context.Context, profile string, reqBody *OrsDirectionRequest) (io.ReadCloser, error)
type OrsClientConfig ¶
type OrsClientConfig struct {
// contains filtered or unexported fields
}
type OrsClientOption ¶
type OrsClientOption func(*OrsClientConfig)
func WithClient ¶
func WithClient(client *http.Client) OrsClientOption
func WithHostURL ¶
func WithHostURL(hostURL *url.URL) OrsClientOption
type OrsDirectionRequest ¶
type OrsResponse ¶
Click to show internal directories.
Click to hide internal directories.