iPhone手机-模拟定位(钉钉打卡)

2019-05-05  本文已影响0人  喝酸奶舔下盖

iPhone手机模拟定位需要的环境

一、坐标拾取

高德、腾讯使用的是投影坐标系统(GCJ-02)也就是我们平常所说的火星坐标系。
百度使用的是投影坐标系统(BD09)在GCJ-02基础上二次加密而成。
具体坐标拾取参考下面👇

我国位于东半球、北半球(经纬度:东经正数西经为负数,北纬正数南纬为负数,经度分为360度,每15度1个时区;维度1度大约111km,1分大约1.85km,1秒大约30.8m)如果坐标拾取的有偏差可以自己微调下。

二、创建项目、添加模拟定位文件

<?xml version="1.0"?>
<gpx version="1.1" creator="Xcode">
    
    <!--
     Provide one or more waypoints containing a latitude/longitude pair. If you provide one
     waypoint, Xcode will simulate that specific location. If you provide multiple waypoints,
     Xcode will simulate a route visiting each waypoint.
     -->
    <wpt lat="30.273722" lon="119.962282">
        <name>Cupertino</name>
        
        <!--
         Optionally provide a time element for each waypoint. Xcode will interpolate movement
         at a rate of speed based on the time elapsed between each waypoint. If you do not provide
         a time element, then Xcode will use a fixed rate of speed.
         
         Waypoints must be sorted by time in ascending order.
         -->
        <time>2014-09-24T14:55:37Z</time>
    </wpt>
    
</gpx>

三、模拟定位后遗症

上一篇 下一篇

猜你喜欢

热点阅读