feat: extract place lat/long coordinates #7

Open
jaredhowland wants to merge 4 commits from jaredhowland/extract-place-coordinates into main
pull from: jaredhowland/extract-place-coordinates
4 Commits
Author SHA1 Message Date
Jared Howland 2071c01317 fix: clarify parent GEDCOM pointer format
Update docstring in src/individual.py to specify that the `father` and `mother` fields are GEDCOM pointers including the surrounding '@' characters (e.g. '@I1@', '@I2@'), removing ambiguity about the expected identifier format.
2026-04-16 23:07:13 -06:00
Jared Howland 0ba00d0ef7 fix: lat/long extraction and emit coordinates
Rename returned long variable to lon and tighten lat/long extraction to avoid recursing into LATI/LONG leaf nodes and to return early when both values are found. Refactor MarkdownGenerator._coordinate_values and change output logic so coordinates are written even when place fields are empty (birth, death, marriage, and events). Update and reorganize tests to match the corrected behavior and improve stability (use next() instead of list indexing, consolidate fixtures, adjust assertions and quoting).
2026-04-16 23:02:49 -06:00
Jared Howland 747175fcef fix: cache subject pointer; tidy up tests
Cache the subject pointer in Individual.get_families by calling self.element.get_pointer() once outside the loop to avoid repeated calls and add a clarifying comment. Clean up tests: remove a duplicated TestIndividualBasicInfo fixture/block comment, drop redundant assertions about residence coordinates, and remove an unnecessary return in TestAttributes.
2026-04-16 22:51:45 -06:00
Jared Howland 2108325252 feat: extract place lat/long coordinates
* Show coordinates for any place that has them
* Add tests for coordinates
2026-04-16 22:16:34 -06:00