Reputation: 16841
I am currently doing this tutorial to get the GPS coordinates of my present location. I need to know what these values means?
The first 2 values are the geo-coordinates
, and i don't know what the other attributes are ?
Upvotes: 0
Views: 343
Reputation: 5479
From Apple's iOS Developer Library what you are seeing as a result of the description
selector being sent to your CLLocation
object (which represents your current location and other location-related info):
A string of the form
<<latitude>, <longitude>> +/- <accuracy>m (speed <speed> kph / heading <heading>) @ <date-time>
, where<latitude>
,<longitude>
,<accuracy>
,<speed>
, and<heading>
are formatted floating point numbers and<date-time>
is a formatted date string that includes date, time, and time zone information.
What you probably want to do now is extract info from your CLLocation
object by accessing its various properties (e.g. CLLocation.altitude
will return the altitude only). Generally, aside from debugging purposes to the console, you would not want to print or display to the user the result of [CLLocation description]
which is what you have there!
Upvotes: 1