Versions in this module Expand all Collapse all v0 v0.4.1 Jun 19, 2017 v0.4.0 May 16, 2017 Changes in this version + type AnnotationType string + const AnnotationDistance + const AnnotationDuration + const AnnotationSpeed + type Codes string + const CodeInvalidInput + const CodeOK + const CodeProfileNotFound + const NoMatchFound + const TooManyCoordinates + type Coordinate []float64 + type GeojsonGeometry struct + Coordinates []Coordinate + type GeometryType string + const GeometryGeojson + const GeometryPolyline + const GeometryPolyline6 + type MapMatching struct + func NewMapMaptching(base *base.Base) *MapMatching + func (d *MapMatching) GetMatching(path []base.Location, profile RoutingProfile, opts *RequestOpts) (*MatchingResponse, error) + type MatchingLeg struct + Distance float64 + Duration float64 + Step []float64 + Summary string + type MatchingResponse struct + Code string + Matchings []Matchings + Tracepoint []TracePoint + type Matchings struct + Confidence float64 + Distance float64 + Duration float64 + Geometry interface{} + Legs []MatchingLeg + func (m *Matchings) GetGeometryGeojson() (*GeojsonGeometry, error) + func (m *Matchings) GetGeometryPolyline() (string, error) + type OverviewType string + const OverviewFalse + const OverviewFull + const OverviewSimplified + type PolylineGeometry string + type RequestOpts struct + Annotations *AnnotationType + Geometries GeometryType + Overview OverviewType + Radiuses string + Steps bool + Timestamps string + func (o *RequestOpts) SetAnnotations(annotations []AnnotationType) + func (o *RequestOpts) SetGeometries(geometrytype GeometryType) + func (o *RequestOpts) SetOverview(overviewtype OverviewType) + func (o *RequestOpts) SetRadiuses(radiuses []int) + func (o *RequestOpts) SetSteps(steps bool) + func (o *RequestOpts) SetTimestamps(timestamps []int64) + type RoutingProfile string + const RoutingCycling + const RoutingDriving + const RoutingDrivingTraffic + const RoutingWalking + type TracePoint struct + Location []float64 + MatchingsIndex int16 + Name string + WaypointIndex int16