是否有任何React Native库可以导航到带有方向和多个航点的Google Maps应用?

问题描述 投票:1回答:1

我希望能够从我的应用程序中打开Goog​​le Maps应用程序,并从我的应用程序数据中获取具有多个航路点的路线。

react-native google-maps react-native-maps directions google-maps-urls
1个回答
0
投票

如果您检查此库react-native-directions。 。您可以在那里提供经纬度的经纬度,它将使用打开地图。指示。在幕后,它仅使用[

调用Linkingreact-native
const url = `https://www.google.com/maps/dir/?api=1&${getParams(
    params
  )}${getWaypoints(waypoints)}`
© www.soinside.com 2019 - 2024. All rights reserved.