BC Data docs

alr_lookup

Agricultural Land Reserve: is this point in the ALR?

Whether a point (lat, lon in WGS 84) lies inside British Columbia's Agricultural Land Reserve, from the ALC polygons on DataBC, read live. Returns the polygon id, status and area; no geometry. Or look up one polygon by alr_poly_id.

Cost: 5 units of your allowance (see Rate limits).

Parameters

  • lat (number, optional): min 47.5, max 61
  • lon (number, optional): min -140, max -113
  • alr_poly_id (integer, optional): max 9007199254740991

REST

curl -X POST https://api.bcmcp.ca/v1/tools/alr_lookup \
  -H "Authorization: Bearer $BCDATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

MCP

Call the tool alr_lookup with these arguments. Over raw JSON-RPC:

curl -X POST https://api.bcmcp.ca/mcp \
  -H "Authorization: Bearer $BCDATA_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"alr_lookup","arguments":{}}}'

What comes back

Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.

On this page