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.

http://developer.apple.com/library/ios/documentation/mapkit/reference/mkmapitem_class/mkmapitem_class.pdf

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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -