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, timeZone
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCoordinate, subtitle, title
supportsSecureCoding
public 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()
MKAnnotation
coordinate
in interface MKAnnotation
public Map<String,Object> addressDictionary()
CLPlacemark
addressDictionary
in class CLPlacemark
Copyright © 2020. All rights reserved.