Search code examples
iosflutterurlmaps

How to launch apple maps with multiple stops in flutter


I was able to launch apple maps using url_launcher package with this url "https://maps.apple.com/?saddr=18.519513,73.868315&daddr=18.518496,73.879259"

But I am unable to find any resource or a way to have stops in between the source and destination. Is it possible for apple maps to have multiple stops between source and destination? If yes, how?

Thanks.


Solution

  • By passing multiple daddr query string parameters you can setup a mutli stop trip, I couldn't find this documented anywhere however.

    Example:

    https://maps.apple.com/?dirflg=d&daddr=OXFORD%2C%20FL%2034484&daddr=FRANKLIN%2C%20TN%2037064
    

    Apple Maps directions with 10 stops