Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 408 Bytes
from generic_api import *
# Simple Python wrapper around the Block Conversion API provided by the FCC.
class BlockConversionAPI(GenericAPI):
def __init__(self):
GenericAPI.__init__(self, [("get_block", "http://data.fcc.gov/api/block/find")])
# Sample use of BlockConversionAPI
if __name__ == "__main__":
bc = BlockConversionAPI()
print bc.get_block(lat=41, long=-87) # (Should be San Francisco)
Something went wrong with that request. Please try again.