In the native Apple Maps app, every direction step has a nice icon showing the action to take. For roundabouts, the icon even correctly shows the roundabout shape, all the exits, and the exit to take:
Note that Apple Maps correctly renders roundabout icons in left-hand traffic countries (UK, Thailand, etc.) as clockwise, while it renders them counter-clockwise in right-hand traffic countries.
How can I get these icons to show in my app? The instructions
property of MKRoute.Step
is just a String
. In fact, it is a localized string, so it is impossible to parse it algorithmically:
The framework localizes the string in this property according to the user’s language preferences.
I do not see any other suitable property that can be accessed to determine the correct icon to show. Does Apple use some secret private API for this?
Any ideas or tips or workarounds?