Skip to main content
Glama
parcellaire-express.test.ts786 B
import {getParcellaireExpress} from "../../src/gpf/parcellaire-express.js"; import { mairieLoray } from "../samples"; describe("Test getParcellaireExpress",() => { it("should expected values for Mairie de Loray", async () => { const c = mairieLoray.coordinates; const items : any[] = await getParcellaireExpress(c[0],c[1]); const itemsTypes = items.map((item) => item.type); expect(itemsTypes).toEqual([ "commune", "feuille", "parcelle" ]); // check item of type parcelle { const parcelle = items.filter((item)=>item.type === 'parcelle')[0]; expect(parcelle).not.toBeUndefined(); expect(parcelle.idu).toEqual('25349000AD0023'); } }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ignfab/geocontext'

If you have feedback or need assistance with the MCP directory API, please join our Discord server