A function that open Apple maps and/or Google maps for showing routes wrtten in Swift 5. How it's look's like: