How to get gps Location with an iPod Touch (4th ge

2019-08-25 03:39发布

I guess the answer has already been posted, but I am a lazzy boy :p .

Seriously I am working on an iPhone Application which have to blit a map and use the current user gps location to locate the user on the map.

The problem is that with iPhone (v1), and all iPod version there is no gps device, so is it possible to get the current gps location of the user (using google map api, with internet ... or something else) ? I would like to know the current gps user location without user gps device since there is no such device in iPhone v1 and iPod Touch :-) .

Thanks a lot for your advices.

1条回答
别忘想泡老子
2楼-- · 2019-08-25 04:28

Do you mean to get the current location? As you said, the iPod touch has no GPS, so you won't be able to get a GPS location.

If you mean just "location", then yes, Core Location does what you want (by using Wi-Fi triangulation). Check out the documentation of CLLocationManager.

查看更多
登录 后发表回答