1. ? ?
  2. PowerServer
  3. Tuesday, 15 February 2022 05:23 AM UTC

inv_gps.of_getcurrentposition( lstr_coordinates)
lwei=lstr_coordinates.dec_latitude
ljin=lstr_coordinates.dec_longitude

我用上面方法得到 经度和纬度, 但我点击多次,每次得到的值都不一样,偏差比较大,定位不准,怎样可以准确,不要变来变去?还有我现在这样是得到经度和纬度,但怎样可以得到具体的地点呢?如果不行那或者哪个网站可以通过经度和纬度查询到地址? 谢谢

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 February 2022 05:57 AM UTC
  2. PowerServer
  3. # 1

你好,

请参考附件PB 2019 R3的案例.
不需要安装地图软件,需要安装google play service, 国产手机可能不支持google play service。
你可以调用Google提供的API来进行经纬度和地址的转换,请参考。
https://zhidao.baidu.com/question/452850419.html

Regards,
Kai

Attachments (1)
Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Wednesday, 16 February 2022 05:19 AM UTC
  2. PowerServer
  3. # 2

是安卓手机,11版本,是不是手机上要安装地图软件,比如百度地图等呀? 还有能不能发个实际的例子学习下,谢谢

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 February 2022 01:53 AM UTC
  2. PowerServer
  3. # 3

你好,

你手机的OS版本是什么?其他手机有这个问题吗?这个跟网络环境有关系,同一位置,不同网络(WIFI,移动,电信等,2G/3G/4G/5G等)可能返回不同值,你可以有用其他定位app是否有同样问题。

经纬度和地址的互相转换,eon_mobile_mapex对象有提供函数of_coordinatetoaddress/of_addresstocoordinate支持,具体请参考。
https://docs.appeon.com/ps2020/workarounds_and_api_guide/Map.html

Regards,
Kai

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.