Search cadastral parcels for a property
Changed onQueries the state's externally operated public cadastre for parcels at or near a point. The state is read from the property's address. Send latitude and longitude, or an address. When both are sent, the coordinates are used and the address is ignored. The address is not stored, logged or used as a cache key. The property's PIC is the farmer's own declaration. It is not looked up and it is not sent to the cadastre.
NSW, VIC, QLD and TAS return candidates. Each has external_id, lot, plan, lot_plan, area_ha and GeoJSON geometry. SA, WA, NT and ACT answer 422 parcel_search_unsupported. Draw the boundary with updatePropertyBoundary. PICs are farmer-declared identifiers, not parcel-search inputs.
A blank state is 422 parcel_search_state_required. Put the state in place_label or location. An address that does not resolve is 422 parcel_geocode_failed. With no geocoder configured, an address is 422 parcel_geocode_unavailable. Send coordinates instead. A state service that does not answer is 422 parcel_search_unavailable.
Plain JSON, not JSON:API. Needs read access to the property's records. A property shared publicly or by link does not share its parcels. Not cached on the response. The server keeps the candidates for twelve hours so attachParcelsToProperty can store the geometry it fetched.
Request
- Base URLhttps://api.purplegrain.com/api/v1
- URLhttps://api.purplegrain.com/api/v1/properties/{property_id}/parcel-search
- AuthHTTP bearer
Path parameters
Query parameters
WGS84 latitude. A value that is not a number is parcel_search_query_invalid.
WGS84 longitude. A value that is not a number is parcel_search_query_invalid.
Used only when latitude and longitude are omitted. Not echoed in the response.
Response
Candidate parcels. An empty parcels array means the point hit none.
Example response
{
"_meta": {
"onboarding": {
"skill": "pg-onboarding@1"
}
}
}Changes
- warning
removed the optional property
from the response with the status (media type: application/json) - warning
removed the optional property
from the response with the status (media type: application/vnd.api+json) - warning
removed the optional property
//from the response with the status (media type: application/json) - warning
removed the optional property
//from the response with the status (media type: application/vnd.api+json) - warning
removed the optional property
from the response with the status (media type: application/json) - warning
removed the optional property
from the response with the status (media type: application/vnd.api+json) - info
added the optional property
//to the response with the status (media type: application/json) - info
added the optional property
//to the response with the status (media type: application/vnd.api+json) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: application/vnd.api+json) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: application/vnd.api+json)
- warning
- info
endpoint added
- info