我需要使用来自 React Native 应用程序内的 google.maps.geometry.encoding
的 Polyline Encoder Utility 对地理位置进行编码,
我正在尝试使用 google api 计算两个地理定位之间的距离,因为它是在地理线内添加转义字符的额外坐标工作,使用 Polyline Encoder 对线进行编码很容易。
那么,我如何从 encodePath()
调用 google.maps.geometry.encoding
?
我正在使用 react-native-maps
和 react-native-geocoding
,
提前致谢。