| 1 | export 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 |
| 15 | export function haToAcres(ha: number): number { |
nothing calls this directly
no outgoing calls
no test coverage detected