Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps 有没有一种方法可以使用React Native Maps实现类似于GoogleMaps距离矩阵API的功能?_Google Maps_Google Maps Api 3_React Native_Google Distancematrix Api_React Native Maps - Fatal编程技术网

Google maps 有没有一种方法可以使用React Native Maps实现类似于GoogleMaps距离矩阵API的功能?

Google maps 有没有一种方法可以使用React Native Maps实现类似于GoogleMaps距离矩阵API的功能?,google-maps,google-maps-api-3,react-native,google-distancematrix-api,react-native-maps,Google Maps,Google Maps Api 3,React Native,Google Distancematrix Api,React Native Maps,有没有一种方法可以实现与使用类似的功能 我需要计算两个标记(或链3+不同标记)之间的距离。谷歌地图距离矩阵API能够计算道路路径内的距离。所以它比两个标记之间的直线更精确 有没有办法使用React本机映射来实现这一点?如果可以单独使用React Native并使用Google Maps API或任何其他API,那也太好了。DirectionsService还将计算单个路线的距离/持续时间(并处理路径点,而距离矩阵则不会)。

有没有一种方法可以实现与使用类似的功能

我需要计算两个标记(或链3+不同标记)之间的距离。谷歌地图距离矩阵API能够计算道路路径内的距离。所以它比两个标记之间的直线更精确


有没有办法使用React本机映射来实现这一点?如果可以单独使用React Native并使用Google Maps API或任何其他API,那也太好了。

DirectionsService还将计算单个路线的距离/持续时间(并处理路径点,而距离矩阵则不会)。