I am looking for a way to draw a route on a map with your finger. The drawn route then needs to be converted into an actual route for car. In Swift or SwiftUI.
I have an example from another app that does exactly what I want to accomplish. Click here to see an example video. (All credits to the creators of this app: FootPath)
I have searched a lot online and found a lot about drawing routes, but nothing that matches what I want or can use for that. I am still in the brainstorming stage of how to get this done.
- I am familiar with using mapKit and how to display routes and such, but this is like the other way around.
- Should I create a separate view for the drawing? But how do I convert it to coordinates?
- Also, how do I make sure that a drawing that is not completely across a road is still corrected to the actual road.
Who can help me in the right direction?