public class MKPlacemark extends CLPlacemark implements MKAnnotation
| Constructor and Description |
|---|
MKPlacemark(CLLocationCoordinate2D coordinate,
Map addressDictionary)
Constructs a MKPlacement object with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
addressDictionary()
Returns a dictionary with keys and values of the address book of this
place mark.
|
CLLocationCoordinate2D |
coordinate()
Define the central point of the annotation.
|
String |
countryCode()
Returns the country code of the place mark.
|
administrativeArea, areasOfInterest, country, inlandWater, ISOcountryCode, locality, location, ocean, postalCode, region, subAdministrativeArea, subLocality, subThoroughfare, thoroughfare, timeZoneaddObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCoordinate, subtitle, titlesupportsSecureCodingpublic MKPlacemark(CLLocationCoordinate2D coordinate, Map addressDictionary)
coordinate - The coordinate of the placemark.addressDictionary - A dictionary containing keys and values from the
address book.public String countryCode()
public CLLocationCoordinate2D coordinate()
MKAnnotationcoordinate in interface MKAnnotationpublic Map<String,Object> addressDictionary()
CLPlacemarkaddressDictionary in class CLPlacemarkCopyright © 2020. All rights reserved.