MCPcopy Index your code
hub / github.com/Thanas-R/Virdis / Field

Interface Field

src/data/fields.ts:1–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface Field {
2 id: string;
3 name: string;
4 area: number; // stored in hectares internally
5 crop: string;
6 cropEmoji: string;
7 location: string;
8 color: string;
9 ndviChange?: number;
10 group?: string;
11 coordinates: [number, number][][]; // GeoJSON polygon coords
12}
13
14// Helper: convert hectares to acres
15export function haToAcres(ha: number): number {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected