Your initial question seemed to be about opening the maps app. Which the code I posted should allow you to do.
Does it work ?
I understand you have further need to help user navigate. What do you want to provide exactly ?
Route planning inside the map ?
Then passing the additional info should be OK. To find what to pass exactly in HTTP header, do the test in Maps: select an itinerary to search and look at the url ; it is like this (here to go from Paris-Orly airport to Toulouse city):
https://www.google.fr/maps/dir/Paris-Orly,+Orly/Toulouse/@46.1636622,-0.0010695,7z/data=!3m1!4b1!4m14!4m13!1m5!1m1!1s0x47e675b1fa6a3b1d:0x9d78ded743db8422!2m2!1d2.3652422!2d48.7262321!1m5!1m1!1s0x12aebb6fec7552ff:0x406f69c2f411030!2m2!1d1.444209!2d43.604652!3e0
Something else ?
Topic:
Programming Languages
SubTopic:
Swift
Tags: