iOS6 MapKit (MKLocalSearch): How to get Address of a mapItem? -
ios6 apple mapkit
so understand code in link below part. http://phpadvocate.com/blog/2013/01/ios-6-1-simple-example-using-mklocalsearch/
however, how address mapitem? seems other properties include: placemark, iscurrentlocation, name, phonenumber, , url.
basically, once data fetched, i'd display name of retail location cell.text , address cell.detailtext.
mapitem.placemark.thoroughfare.copy, // return first single line address
mapitem.placemark.locality, // return city
mapitem.placemark.administrativearea //will return state.
below more:
clplacemark | property meaning
thoroughfare | street address. first line if multiple lines.
subthoroughfare | street address, second line (e.g., apartment or unit number, box number)
locality | city
sublocality | might contain neighborhood or landmark name, though it’s nil
administrativearea | state, province, territory, or other similar unit
dministrativearea | county
postalcode | zip code
country | country
countrycode | two-digit iso country code
Comments
Post a Comment