floodplain_lookup
Mapped floodplain at a point
Not a flood hazard or risk map, and a miss does not show a point is safe. Whether a point (lat, lon in WGS 84) lies inside an area of the province's historical floodplain mapping (Mapped Floodplains in BC: 133 mapped areas such as the Vedder and Chilliwack Rivers; most of the province has none), read live from DataBC. Each area is a Floodplain, an Alluvial Fan, or an area mapped as outside the floodplain (feature name Nothing). Returns the area id, floodplain name, feature name, designation date and mapsheet numbers; no geometry.
Cost: 5 units of your allowance (see Rate limits).
Parameters
lat(number, required): min 47.5, max 61lon(number, required): min -140, max -113
REST
curl -X POST https://api.bcmcp.ca/v1/tools/floodplain_lookup \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{"lat":47.5,"lon":-140}'MCP
Call the tool floodplain_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":"floodplain_lookup","arguments":{"lat":47.5,"lon":-140}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.