mattermoran / map_launcher

Flutter plugin for launching maps
MIT License
265 stars 125 forks source link

Add waypoints to maps that support them #113

Closed mattermoran closed 1 year ago

mattermoran commented 2 years ago

Find out which maps have support for waypoints and integrate

SoftWyer commented 1 year ago

It's possible to open directions with waypoints on Apple maps via a URL, rather than using MKLink, e.g.

maps://https://maps.apple.com/maps?saddr=37.8078513,-122.404604&daddr=37.7705112,-122.4108267&daddr=37.759392,-122.5107336

See this SO question

mattermoran commented 1 year ago

@SoftWyer thanks! In fact it's possible using MapKit by just adding as many MKMapItem between origin and destination. I don't know why I never done that it's like couple minutes haha I think I might release new version today with waypoints for apple maps

mattermoran commented 1 year ago

@SoftWyer could you try to install version from master branch and see if it all works fine for you? I have tested on my side and it seem to be ok. If there are no issues I will publish on pub

map_launcher:
  git:
    url: https://github.com/mattermoran/map_launcher.git
SoftWyer commented 1 year ago

Will do, but it'll have to be tomorrow. I'll drop a comment here 😄

SoftWyer commented 1 year ago

@SoftWyer could you try to install version from master branch and see if it all works fine for you? I have tested on my side and it seem to be ok. If there are no issues I will publish on pub

map_launcher:
  git:
    url: https://github.com/mattermoran/map_launcher.git

That's working perfectly, no client side changes required which is great 👍

Thanks for being so responsive, much appreciated.

mattermoran commented 1 year ago

Awesome. Version 2.5.0 is now available on pub :)

artemsorochan commented 1 year ago

@mattermoran is there a way on how to add title for waypoint also?

mattermoran commented 1 year ago

It doesn't look like google maps supports titles in directions mode. For iOS I guess it should be possible to that would require refactoring the waypoints as it currently just latlong. Maybe in the next major version but not anytime soon

AristideVB commented 1 year ago

Being able to add labels on way points would be incredible ! :)