get Road Shields
fun getRoadShields(maneuvers: List<Maneuver>, callback: RoadShieldCallback)
Content copied to clipboard
Given a list of Maneuver the function requests road shields (if available) using urls associated in RoadShieldComponentNode.
If you do not wish to download all of the shields at once, make sure to pass in only a list of maneuvers that you'd like download the road shields.
The function is safe to be called repeatably, all the results are cached in-memory and requests are managed to avoid duplicating network bandwidth usage.
The return maps of String to RoadShield or RoadShieldError in RoadShieldCallback.onRoadShields can be used when displaying PrimaryManeuver, SecondaryManeuver, and SubManeuver.
See also
Parameters
maneuvers
list of maneuvers
callback
invoked with appropriate result