liodali/OSM-Routing-Client-Dart

Missing RoadSteps

Opened this issue · 3 comments

Hi
After updating to version 5 I don't have access to the roadlegs directly from Road class
was using it to get all the destinations

List<String> getDestinations(Road road) {
    final destinations = road.roadLegs
        .expand((e) => e)
        .map((e) => e.destinations)
        .whereNotNull()
        .toList();
    return destinations;
  }

Now it is simply not accessible anymore

The getter 'roadLegs' isn't defined for the type 'Road'.
Try importing the library that defines 'roadLegs', correcting the name to the name of an existing getter, or defining a getter or field named 'roadLegs'.dart[undefined_getter](https://dart.dev/diagnostics/undefined_getter)

i will add destination attribute in Road instead of you do call it like that
it will publish new version this weekend

check our latest version : 0.5.3

@liodali Thank you so much