1#ifndef PROGRAM_HARVEST_AREAS_H
2#define PROGRAM_HARVEST_AREAS_H
5#include <cjson/cJSON.h>
18#define FA_DEFAULT_DIRECTORY "datasets/nsw_food_authority"
20#define FA_DEFAULT_FILENAME "datasets/nsw_food_authority/statuses.csv"
23#define FA_MAX_NUMBER_HARVEST_AREAS 120
int8_t FA_HarvestAreasToCSV(FA_HarvestAreas_TypeDef *harvest_areas)
Push harvest areas list into a .csv file.
Definition: harvest_areas.c:135
CURLcode FA_GetHarvestAreas(FA_HarvestAreas_TypeDef *harvest_areas)
Get a list of oyster harvest areas in NSW Australia.
Definition: harvest_areas.c:15
void FA_HarvestAreasToDB(FA_HarvestAreas_TypeDef *harvest_areas, PGconn *psql_conn)
Push harvest area statuses to DB.
Definition: harvest_areas.c:172
void FA_UniqueLocationsFromDB(T_LocationsLookup_TypeDef *locations, PGconn *psql_conn)
Get Unique harvest area locations from DB.
Definition: harvest_areas.c:371
void FA_CreateLocationsLookupDB(PGconn *psql_conn)
Create unique harvest area locations lookup table in DB.
Definition: harvest_areas.c:234
#define FA_MAX_NUMBER_HARVEST_AREAS
Maxiumum number of oyster harvest areas in response.
Definition: harvest_areas.h:23
Harvest area status information.
Definition: harvest_area.h:23
Holds a list of oyster harvest areas (and their status) in NSW.
Definition: harvest_areas.h:26
uint16_t count
Definition: harvest_areas.h:27
Locations lookup table structure.
Definition: transform.h:49