Hello!
My goal is to convert a (large) number of latitudes and longitudes to Federal Information Processing Standard (FIPS) codes. A convenient way to do it is to use the FCC API (https://www.fcc.gov/general/census-b...onversions-api), however its processing rate is relatively slow (e.g., it takes about 10 minutes to process 1000 requests). Considering I have 20 million rows of coordinates to be converted, it will take forever with an API. Therefore, I am elaborating on another approach for which I am seeking your help, dear forum members.
Firstly, I have a data set #1 (N[1] = about 20 million rows) that contains pairs of geo coordinates to be converted to FIPS codes. The data looks like this:
And secondly, I have a data set #2 (N[2] = 3221 rows) that contains FIPS codes with respective geo coordinates. The data looks like this:
To convert the coordinates, I assume it is possible for the code to (1) grab a pair of coordinates from data set #1, (2) compare it with a list of coordinates in data set #2, and (3) if there is a match (say, to the 5th digit after decimal point), record the corresponding FIPS value to data set #1 (or a missing value if there is no match).
Your help with this task would be greatly appreciated, as my programming skill set is limited.
My goal is to convert a (large) number of latitudes and longitudes to Federal Information Processing Standard (FIPS) codes. A convenient way to do it is to use the FCC API (https://www.fcc.gov/general/census-b...onversions-api), however its processing rate is relatively slow (e.g., it takes about 10 minutes to process 1000 requests). Considering I have 20 million rows of coordinates to be converted, it will take forever with an API. Therefore, I am elaborating on another approach for which I am seeking your help, dear forum members.
Firstly, I have a data set #1 (N[1] = about 20 million rows) that contains pairs of geo coordinates to be converted to FIPS codes. The data looks like this:
Code:
latitude longitude -37.810138702 144.9573822 6.0547738075 116.14962006 50.792110443 -1.0856829882 40.692913055 29.619443893 -21.339885712 25.356695175 33.99703598 -84.705795288 51.279109955 1.0835139751 51.55103302 -.07526999712 53.502655029 -1.1799679995 6.7345790863 3.4259450436 ...
Code:
FIPS latitude longitude 01001 32.5003890991210938 -86.4941635131835938 01003 30.5489234924316406 -87.7623825073242188 01005 31.8440361022949219 -85.3100357055664063 01007 33.0309219360351563 -87.1276626586914063 01009 33.9552421569824219 -86.59149169921875 01011 32.1163253784179688 -85.7011947631835938 01013 31.7735385894775391 -86.6535491943359375 01015 33.7254600524902344 -85.8194427490234375 01017 32.8604393005371094 -85.2664718627929688 01019 34.1793327331542969 -85.6291961669921875 ...
Your help with this task would be greatly appreciated, as my programming skill set is limited.
Comment