mapbox-directions-swift
mapbox-directions-swift copied to clipboard
Expose step weights
RouteStep should have a property that indicates the weight the step was given for the current profile. (Currently the only supported weight metric is “routability”, but “duration” and “distance” could also be possible in the future.)
The JSON response puts this information in a weight property, but I think we should either qualify that word (routingWeight?) or choose a less overloaded word (relevance?).
These API response properties are now documented here.