How can I tell if an iOS device has a GPS?

后端 未结 4 2062
故里飘歌
故里飘歌 2020-12-10 13:14

For an iPad, or iPod touch, is there a way to find out if the device has GPS?

Extra Credit: What if the iPad itself does not, but it is connected to a third-party GP

4条回答
  •  长情又很酷
    2020-12-10 13:51

    Only GPS can deliver the location attributes: course and speed.
    And as a general rule, you need GPS for precise location, a device whitout GPS will deliver a location.getHoricontalAccuracy() higher than 30- 40m. (Using accuracy setting of CLLLocationAccuracyBest)

    So In that case you dont have an accurate position and can ignore that always. (Independnet if the device has GPS or not)

提交回复
热议问题