read-gedcom
Version:
Gedcom file reader
22 lines • 848 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectionPlace = void 0;
const parse_1 = require("../parse");
const internal_1 = require("./internal");
const mixin_1 = require("./mixin");
class SelectionPlace extends (0, mixin_1.SelectionWithNoteMixin)(internal_1.SelectionAny) {
valueAsParts() {
return this.value().map(parse_1.parsePlaceParts);
}
getPhonetization() {
return this.get("FONE" /* Tag.Phonetic */, null, internal_1.SelectionPhonetization);
}
getRomanization() {
return this.get("ROMN" /* Tag.Romanized */, null, internal_1.SelectionRomanization);
}
getCoordinates() {
return this.get("MAP" /* Tag.Map */, null, internal_1.SelectionCoordinates);
}
}
exports.SelectionPlace = SelectionPlace;
//# sourceMappingURL=SelectionPlace.js.map