Search code examples
iosswiftgoogle-mapsgoogle-maps-sdk-iosios-universal-links

Add multiple stops to Google navigation using Universal URL schemes


Is there a way to launch Google Maps app on iOS with multiple stops using Google Maps URL Scheme?


Solution

  • Well we need to append to: parameter for each location. The url scheme will be as follows:

    • from your current location

      comgooglemaps://?daddr=Lat,Lon+to:Lat,Lon+to:Lat,Lon+to:...

    • if you have source location

      comgooglemaps://?saddr=Lat,Lon&daddr=Lat,Lon+to:Lat,Lon+to:Lat,Lon+to:...