Defines the location of the person's birth.
Code sample (creating)
VCard vcard = new VCard();
//text
Birthplace birthplace = new Birthplace("Maida Vale, London, United Kingdom");
vcard.setBirthplace(birthplace);
//geo coordinates
birthplace = new Birthplace(51.5274, -0.1899);
vcard.setBirthplace(birthplace);
//URI
birthplace = new Birthplace();
birthplace.setUri("http://en.wikipedia.org/wiki/Maida_Vale");
vcard.setBirthplace(birthplace);
Code sample (retrieving)
VCard vcard = ...
Birthplace birthplace = vcard.getBirthplace();
String text = birthplace.getText();
if (text != null) {
//property value is plain text
}
Double latitude = birthplace.getLatitude();
Double longitude = birthplace.getLongitude();
if (latitude != null) {
//property value is a set of geo coordinates
}
String uri = birthplace.getUri();
if (uri != null) {
//property value is a URI
}
Property name:
BIRTHPLACE
Supported versions:
4.0