Skip to content

MapboxMapMatching.Builder.build() uses incorrect delimiter for timestamps #819

@richjhart

Description

@richjhart

It's not possible to build a map matching request with timestamps, because the builder uses commas to delimit the timestamps.

Expected Behavior

A Map Matching Request with timestamps will return a valid response

Current Behavior

The request fails because the API believes not enough timestamps have been provided

Possible Solution

Simply change the delimiter in com.mapbox.api.matching.v5.MapboxMapMatching$Builder.build() to ";" for timestamps. The same issue applies to the radiuses.

Steps to Reproduce

To reproduce, simply create a Map Matching Request and provide timestamps. When building, it will use commas instead of semi colons. It will appear to build correctly and send the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions