pikaju / flutter-maps-launcher

Simple Flutter package to open the maps application (or browser) on all platforms.
https://pub.dev/packages/maps_launcher
MIT License
60 stars 43 forks source link

lunch maps app with direction or two location to route in map #7

Closed mshamsi502 closed 1 year ago

mshamsi502 commented 3 years ago

how can I launch the map of another app with Direction(or Route or two locations) data (every app! no like map_launcher that launch just some apps ) some like Intent package and ACTION_VIEW :

                    android_intent.Intent()
                      ..setAction(android_action.Action.ACTION_VIEW)
                      ..setData(
                        Uri.parse(
                            "http://maps.google.com/maps?saddr=17.428323,78.412567&daddr=28.6454414,77.0907573"),
                      )
                      ..startActivityForResult().then(
                        (data) => print(data),
                      );

but i want user select app byopen with

pikaju commented 1 year ago

I think this may be impossible because the geo intent on Android doesn't have this feature. I couldn't find it at least. They only explain how to do it with Google Maps only, like you described.