Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 真机定位无法获取具体位置,只有经纬度 #19

Open
songfeiSF opened this issue Feb 4, 2021 · 4 comments
Open

iOS 真机定位无法获取具体位置,只有经纬度 #19

songfeiSF opened this issue Feb 4, 2021 · 4 comments

Comments

@songfeiSF
Copy link

` ///设置Android端的定位模式

///可选值:

///

  • [AMapLocationMode.Battery_Saving]

  • ///
  • [AMapLocationMode.Device_Sensors]

  • ///
  • [AMapLocationMode.Hight_Accuracy]

  • locationOption.locationMode = AMapLocationMode.Hight_Accuracy;

      ///设置iOS端的定位最小更新距离<br>
      locationOption.distanceFilter = -1;
    
      ///设置iOS端期望的定位精度
      /// 可选值:<br>
      /// <li>[DesiredAccuracy.Best] 最高精度</li>
      /// <li>[DesiredAccuracy.BestForNavigation] 适用于导航场景的高精度 </li>
      /// <li>[DesiredAccuracy.NearestTenMeters] 10米 </li>
      /// <li>[DesiredAccuracy.Kilometer] 1000米</li>
      /// <li>[DesiredAccuracy.ThreeKilometers] 3000米</li>
      locationOption.desiredAccuracy = DesiredAccuracy.NearestTenMeters;
    
      ///设置iOS端是否允许系统暂停定位
      locationOption.pausesLocationUpdatesAutomatically = false;
    
      ///将定位参数设置给定位插件
      _locationPlugin.setLocationOption(locationOption);`
    
    @JamesBondMine
    Copy link

    请问解决了么? 我也遇到了不能获取位置信息的情况了

    @LiliCode
    Copy link

    朋友这个问题解决了吗,我也遇到 iOS 端无法获取具体定位信息,只能获取到经纬度,有的地方需要获取城市名称,只能写 iOS 的插件,调用 iOS 自带的定位来逆向地理编码。但是有的地方有需要 citycode 还有 adcode 这些有没有,真的很恼火。

    @JamesBondMine
    Copy link

    JamesBondMine commented Sep 22, 2023 via email

    @LiliCode
    Copy link

    LiliCode commented Sep 22, 2023 via email

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants