Information on how to open a map application (GoogleMaps) with a URL scheme on iOS and provide route guidance with multiple transit points.

Asked 2 years ago, Updated 2 years ago, 126 views

let urlStr:String="comgooglemaps-x-callback://"+"?f=d&saddr=35.681298,139.766268&daddr=35.658598,139.745454"+"&x-success=source://?resume=sourceap;sour="Airportpp

UIAApplication.sharedApplication().openURL (NSURL(string:urlStr)!)

As mentioned above, we can guide the route from Tokyo Station to Tokyo Tower using the URL scheme, but would it be possible to guide the route through another point (Roppongi Hills) on the way?

If you can provide route guidance (car navigation) with a via point, I don't mind Google Maps, but Apple Maps and Yahoo Maps...

Thank you for your cooperation.

swift ios xcode google-maps

2022-09-30 21:17

1 Answers

It's not as detailed as a car navigation system, but I think I can do it roughly with WayPoints in the Google Maps Directions API.

https://developers.google.com/maps/documentation/directions/intro#Waypoints


2022-09-30 21:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.