We were able to achieve this to a larger extent using certain classes in the SwiftOverpassAPI library. It helped in effortlessly converting and mapping the tags and relevant information in the response to annotations and polylines. We have also cross-verified the output with overpass turbo . Attached are screenshots for reference.

