Read-only for now. Write abilities will follow when members and clubs edit addresses through LH Addresses rather than LH Profile Page.
get-addresses Get Addressesget-status Get StatusLists a user's addresses and the sites that hold them, current addresses only unless include_ended is set. Each address gives its structured fields (country code, state code, town, postcode, lines), validation and geocode status, point once geocoded, source and when it was entered, and its uses: site_id 0 is the member's own book, any other site_id is an organisation it was given to, with the type (residential, postal, delivery and so on). History is never deleted: a changed address ends its row and starts a new one, and a site the member has left keeps its use on the old row, its last record. With site_id, only the addresses that site holds now are listed, which for a former member may be an ended row. include_ended adds replaced addresses and ended uses. Requires install_plugins, except that anyone signed in may list their own addresses.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
user_id | integer | Yes | The user whose addresses to list. | |
site_id | integer | No | Restrict to the addresses this site holds; 0 for the member's own book. Omit for every address. | |
include_ended | boolean | No | false | Also list replaced addresses and ended uses. |
Reports how many addresses are stored, their validation and geocode status, and the progress of the LH Profile Page backfill. totals gives every address row, current rows and replaced (ended) rows. validation and geocode count addresses by status: validation is valid, incomplete, invalid or unchecked; geocode is pending, done, failed or skipped. backfill gives the pass, the last user ID handled, how many users were seen, saved, skipped (already copied) and failed, and whether and when it finished. Use get-addresses for one user. Requires install_plugins.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
_ | string | No | "" | Unused; pass an empty string. |