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

人走茶凉 提交于 2019-12-12 01:33:35

问题


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:


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.



来源:https://stackoverflow.com/questions/4166378/how-to-get-gps-location-with-an-ipod-touch-4th-gen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!