itinero / routing

The routing core of itinero.
Apache License 2.0
221 stars 69 forks source link

One-to-many routing returns only first path #203

Closed DomantasJ closed 6 years ago

DomantasJ commented 6 years ago

This Calculate overload:

public static Result<Route[]> TryCalculate(
    this RouterBase router,
    IProfileInstance profile,
    RouterPoint source,
    RouterPoint[] targets,
    CancellationToken cancellationToken)

returns an array of one element with the path from source to targets[0]. I think these 5 lines should be changed to simply return new Result(result.Value[0]).