The rootfcc
package provides the data structures necessary for parsing theamateur-relevant portion of the FCC license database that is provided as a1GB+ csv file.
cmd/fcc2bolt
is a console application that reads the zipfile of the FCC dump,parses it, and inserts active amateur licenses into a boltDB store.
cmd/fccdb
is a console application for doing name and address lookups ofFCC-issued amateur callsigns.
Thefcc
package can be used as-is. To download and ingest the FCC database,this software requirescurl
,make
, and thego
toolchain.
make help
provides all options in the Makefile.
make
will build thecmd
binaries, download the FCC dataset, and performthe boltdb ingestion.
sudo make install
will copyfccdb
andfccd
to/usr/local/bin/
and thefcc.db
database to/usr/share/fccdb
.
fccd
listens on port 8080, and picks up a non-default DB location from the FCCDBenvironment variable.
Lookups against thefccd
API can be made in the format:/license/<FCC CALLSIGN>
From the console:curl http://localhost:8080/license/kj6cbe
The expected result:
{ "Name": "Lehtonen, Lars A", "Address": "1727 Glendale Blvd", "City": "Los Angeles", "State": "CA", "ZIP": "90026" }