0

I want to be able to open Google maps app from my app and get directions with multiple waypoints from my apps data.

xomena
  • 31,125
  • 6
  • 88
  • 117
Armin Dervić
  • 165
  • 2
  • 11
  • Have a look at [Google Maps URLs](https://developers.google.com/maps/documentation/urls/guide#directions-action). Directions mode supports origin, destination and waypoints. – xomena Jan 16 '20 at 00:05

1 Answers1

1

If you check this libraryr react-native-directions . . There you can provide the lat , long and it will open the maps with . directions. Under the hood it only calls Linking of react-native with

const url = `https://www.google.com/maps/dir/?api=1&${getParams(
    params
  )}${getWaypoints(waypoints)}`

So you can either do it like this or use the library.

Hope it helps. feel free for doubts

Gaurav Roy
  • 11,175
  • 3
  • 24
  • 45