locate_neighbourhood
Find the neighbourhood policing team assigned to any location by supplying its latitude and longitude coordinates.
Instructions
Find the neighbourhood policing team for a given latitude and longitude
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude of the location | |
| lng | Yes | Longitude of the location |
Implementation Reference
- src/index.ts:402-406 (handler)The handler function for 'locate_neighbourhood'. It extracts lat/lng arguments, builds a query parameter in the format 'lat,lng', and calls the police.uk API endpoint 'locate-neighbourhood'.
async function locateNeighbourhood(args: any) { const { lat, lng } = args; const params = { q: `${lat},${lng}` }; return await makeApiRequest('locate-neighbourhood', params) || {}; } - src/index.ts:208-219 (schema)Input schema definition for 'locate_neighbourhood'. Specifies two required parameters: lat (number) and lng (number).
{ name: 'locate_neighbourhood', description: 'Find the neighbourhood policing team for a given latitude and longitude', inputSchema: { type: 'object', properties: { lat: { type: 'number', description: 'Latitude of the location' }, lng: { type: 'number', description: 'Longitude of the location' } }, required: ['lat', 'lng'] } }, - src/index.ts:464-464 (registration)Registration of the locateNeighbourhood handler in the toolFunctions mapping, linking the tool name 'locate_neighbourhood' to the async handler function.
locate_neighbourhood: locateNeighbourhood,