gedcom-ts
Version:
A TypeScript library to create genealogy tree data model and to import/export data in a GEDCOM file (.ged).
25 lines (24 loc) • 536 B
JavaScript
export class Place {
city;
zip;
county;
region;
country;
coordinate;
constructor(city, zip, county, region, country, coordinate) {
this.city = city;
this.zip = zip;
this.county = county;
this.region = region;
this.country = country.toUpperCase();
this.coordinate = coordinate;
}
}
export class CoordinateGPS {
latitude;
longitude;
constructor(latitude, longitude) {
this.latitude = latitude;
this.longitude = longitude;
}
}