add_place
Create a typed, parented place in a Gramps tree to prevent untyped duplicates that arise when event naming spawns places as a side effect.
Instructions
Create a place deliberately, with a type and a parent.
Use this instead of letting a place appear as a side effect of naming one in an event. That route produces an untyped, unparented place whose title is the bare string you typed, which is how duplicate hierarchies start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Postal or FIPS code. | |
| name | Yes | The place's own name, e.g. 'Cedar Flat'. | |
| title | No | Full display title, e.g. 'Cedar Flat, Brannock, Ohio, USA'. Defaults to the name. This is what event place matching compares against, so set it properly. | |
| parent | No | Handle or gramps_id of an existing enclosing place. Must already exist — it is never created for you. | |
| latitude | No | Latitude, decimal degrees. | |
| longitude | No | Longitude, decimal degrees. | |
| place_type | No | Gramps place type: Town, City, County, State, Country, Parish, Farm, Building, and so on, or a custom type the tree already has. | |
| allow_new_type | No | Accept a type that is neither a Gramps standard type nor one of the tree's custom types, creating it as a new custom type. Only when meant: a near-miss is refused with the closest names. |