0

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
  • It works roughly in the WiFi-only iPad, which does not have GPS. Have you tried calling the normal services to see if they work?
    – Douglas
    Nov 12, 2010 at 15:54

1 Answer 1

2

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.

5
  • 1
    Hmm so what's the real difference with the return value of GPS and the return value of the Core Location ? (is it possible to get lambert 2 location using Core Location for example ?), thanks. Nov 12, 2010 at 15:58
  • 1
    You always go through Core Location. There's no way to talk to the GPS directly. Just the accuracy of the returned location updates is different depending on the features of the device. Nov 12, 2010 at 16:00
  • 1
    Ok, so GPS or not , if I have a internet connection I will get the user location, but without GPS the location is not really precise, that's right ? Nov 12, 2010 at 20:15
  • 1
    Right. Provided of course, the Wi-Fi network is listed in Apple's database. Normally this is the case, though. Wi-Fi positioning is rather precise actually, 50-100 m. Nov 12, 2010 at 21:58
  • Ok , you rock dude :-) . Thank you a lot. Nov 13, 2010 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.