programmatically determine if GPS available in ipad

I have to programmatically check if an iPad device has GPS available or not, how do I do it? Thanks for the help

Post not yet marked as solved Up vote post of wiwi3 Down vote post of wiwi3
554 views

Replies

CoreLocation has an API you can use to determine if the device has GPS services.

Thanks for the reply. Do you know which API can do it? thanks

I don't believe the answer above is correct. Apple goes out of there way to obfuscate whether position is determined by GPS or by wifi. So if you have wifi turned on, you will never know if GPS is available or not.

In general, all iphones have GPS, and most ipads do not. The GPS seems to be bundled with the cell-phone transceiver.