BG
BC Geographical Names Web Service - REST API
/names/decisions/year
Search for names affected by naming decisions in a given year
Search for information about geographical names affected by naming 'decisions' made by the BC Geographical Names Office (naming authority) in a given year.
liveunknown~3s typical
searchnamebc
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run oa-gov-bc-ca-bcgnws /names/decisions/year for me.
Input
| Field | Type | Description |
|---|---|---|
| outputFormat* | string (json | xml | kml | csv) | The format of the output. default "json" |
| year* | integer | The year in which to search for names affected by naming decisions'. default null |
| featureClass | string | A filter to limit the search to names associated with features of a certain 'class' The value of this parameter should be a 'featureClassCode' value returned by the /featureClasses resource, or an as default "*" |
| featureCategory | string | A filter to limit the search to names associated with features of a certain 'category' The value of this parameter should be a 'featureCategoryCode' value returned by the /featureCategories resource, default "*" |
| featureType | string | A filter to limit the search to names associated with features of a certain 'type' The value of this parameter should be a 'featureTypeCode' value returned by the /featureTypes resource, or an asteri default "*" |
| sortBy | string (name | featureType | decisionDate) | The distance to move the accessPoint away from the curb and towards the inside of the parcel (in metres). Ignored if locationDescriptor not set to accessPoint. default "name" |
| outputSRS | integer (4326 | 4269 | 3005 | 3857 | 26907 | 26908) | The EPSG code of the spatial reference system (SRS) to use for output geometries. default 4326 |
| embed | integer (0 | 1) | A flag to indicate whether to embed the corresponding 'feature' into each matching name default null |
| outputStyle | string (summary | detail) | A flag indicating whether to include with each matching name a succinct list of attributes (summary), or a comprehensive list of attributes (detail) default "summary" |
| itemsPerPage | integer | The number of search results to return (1-200) default 20 |
| startIndex | integer | The index of the first record to be returned (>= 1) default 1 |
Call it
curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
-H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
-d '{"provider":"oa-gov-bc-ca-bcgnws","endpoint":"/names/decisions/year","input":{"outputFormat":"json","year":1,"featureClass":"*","featureCategory":"*","featureType":"*","sortBy":"name","outputSRS":4326,"embed":0,"outputStyle":"summary","itemsPerPage":20,"startIndex":1}}'cli
npx cracked-ai run -p oa-gov-bc-ca-bcgnws -e /names/decisions/year -i '{"outputFormat":"json","year":1,"featureClass":"*","featureCategory":"*","featureType":"*","sortBy":"name","outputSRS":4326,"embed":0,"outputStyle":"summary","itemsPerPage":20,"startIndex":1}'mcp
run_tool({ provider: "oa-gov-bc-ca-bcgnws", endpoint: "/names/decisions/year", input: {"outputFormat":"json","year":1,"featureClass":"*","featureCategory":"*","featureType":"*","sortBy":"name","outputSRS":4326,"embed":0,"outputStyle":"summary","itemsPerPage":20,"startIndex":1} })Try it
Runs against your signed-in workspace balance. Sign in if you have not.