Is there any React Native library that can navigate to Google maps app with directions and multiple waypoints?

614 Views Asked by At

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

1

There are 1 best solutions below

1
Gaurav Roy On BEST ANSWER

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