Skip to content

No direct way to add metadata to DirectionsRoute #173

@cepprice

Description

@cepprice

In v4 DirectionsRoute and its members were abstract classes. It means you could create data class MyLegStep(...., val myMetadata: Any) : LegStep(), put your own data here, and retrieve it on progress change.

But in v5 DirectionsRoute is data class. You cant store additional data here. On progress change you have only basic data, and have to store additinal route data elsewhere.

It it inconvenient and error prone. Please consider switching to interfaces or abstract classes, as before

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions