Skip to content

directions: doesn't support returning Geojson #25

Description

@d4l3k

Hi, I ran into an issue when trying to get directions via this library. It doesn't seem to support getting Geojson from mapbox.

		geometry := directions.GeometryGeojson
		overview := directions.OverviewFull
		directions, err := mbox.Directions.GetDirections([]base.Location{
			{Latitude: bm.Latitude, Longitude: bm.Longitude},
			{Latitude: b.Latitude, Longitude: b.Longitude},
		}, directions.RoutingCycling, &directions.RequestOpts{
			Geometries: &geometry,
			Overview:   &overview,
		})
json: cannot unmarshal object into Go struct field Route.Geometry of type string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions