EddyVerbruggen / nativescript-directions

:point_up_2: :point_right: :point_down: :point_left: Open the Maps app to show directions to anywhere you like
MIT License
83 stars 21 forks source link

How do I add a stop or have multiple directions using this plugin? #11

Closed sanketsw closed 7 years ago

sanketsw commented 7 years ago

I want to have directions between three locations. Start Point -> my current location First Stop -> Say, Some store Second Stop -> Say, some restaurant address Second stop -> The final destination

umeshswamy commented 7 years ago

Hello @sanketsw, were you able to get the waypoints to work ?

EddyVerbruggen commented 7 years ago

On Android, this is possible if we extend the plugin (add a +to: param to the querystring).

However, Apple Maps is used on iOS which doesn't support this. See the rather limited Map Links API.

Perhaps we can extend the plugin by allowing you to launch Google Maps on iOS, which does support waypoints.

EddyVerbruggen commented 7 years ago

Please update to 1.1.0 and enjoy the fact you can now pass an array to to (see the updated README).

sanketsw commented 7 years ago

Thanks very much. I will give this a go this sometime soon.