EarthFrequencies / earth-frequencies-data

Open data describing the radio frequency allocation for each region and country.
Other
1 stars 1 forks source link

fix(data): update API #14

Closed jrmlhermitte closed 2 years ago

jrmlhermitte commented 2 years ago

Description

Update converter API to conform to:

interface FrequencyBand {
  lower: number;
  upper: number;
}

interface FrequencyAllocation {
  service: string;
  primary: boolean;
  footnotes?: string[];
}

interface FrequencyAllocationBlock {
  band: FrequencyBand;
  allocations: FrequencyAllocation[];
}

interface FrequencyAllocations {
  name: string;
  region: string;
  parentRegion?: string;
  year: number;
  meta?: Record<string, any>;
  allocationBlocks: FrequencyAllocationBlock[];
}
jrmlhermitte commented 2 years ago

NOTE: This is intentionally hackish. This converter will provide a workable set of data that we can start connecting to github pages and allow more testing with the UI.