【问题标题】:How to get Lat and Long from google in React Native如何在 React Native 中从 google 获取 Lat 和 Long
【发布时间】:2020-10-28 06:54:51
【问题描述】:

我正在尝试使用 react native 从 google 获取 lat and long。我是 React native 的新手,没有找到任何资源来解决我的问题。有人可以帮帮我吗?

谢谢

【问题讨论】:

  • 纬度/经度到底是什么?问题太模糊,无法给出合理的答案

标签: javascript reactjs react-native ecmascript-6


【解决方案1】:

必须添加到您的 proyect react-native-geolocation-service,这是链接 https://github.com/Agontuk/react-native-geolocation-service

Geolocation.getCurrentPosition 是我用来获取位置的方法。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-20
    • 1970-01-01
    • 2015-01-25
    • 1970-01-01
    • 1970-01-01
    • 2018-09-06
    • 2012-03-20
    • 1970-01-01
    相关资源
    最近更新 更多