{"id":21348070,"url":"https://github.com/vikjam/tractr","last_synced_at":"2025-03-16T04:18:01.768Z","repository":{"id":144968072,"uuid":"81624673","full_name":"vikjam/tractR","owner":"vikjam","description":"Simple R Wrapper for the Census Batch Geocoder API","archived":false,"fork":false,"pushed_at":"2021-09-05T01:36:42.000Z","size":227,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T16:47:20.993Z","etag":null,"topics":["census-api","geocoding"],"latest_commit_sha":null,"homepage":"https://vikjam.github.io/tractR","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vikjam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-11T02:19:31.000Z","updated_at":"2021-09-05T01:36:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8936915-87d7-4d11-bab6-c12994fe38da","html_url":"https://github.com/vikjam/tractR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikjam%2FtractR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikjam%2FtractR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikjam%2FtractR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikjam%2FtractR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikjam","download_url":"https://codeload.github.com/vikjam/tractR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822294,"owners_count":20353501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["census-api","geocoding"],"created_at":"2024-11-22T02:17:48.339Z","updated_at":"2025-03-16T04:18:01.762Z","avatar_url":"https://github.com/vikjam.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tractR\nSimple R Wrapper for the [Census Batch Geocoder API](https://geocoding.geo.census.gov/geocoder/)\n\n![tractR](https://raw.githubusercontent.com/vikjam/tractR/master/assets/tractR.png \"tractR\")\n\n![Actions Status](https://github.com/vikjam/tractR/actions/workflows/r.yml/badge.svg)\n\n### Installation\nUsing the R package [`devtools`](https://www.rstudio.com/products/rpackages/devtools/), you can easily install `tractR`.\n```{r}\ndevtools::install_github('vikjam/tractR')\n```\n\n### Use\n```{r}\nlibrary(data.table)\nlibrary(stringr)\nlibrary(tractR)\nCAMBRIDGE_URL \u003c- 'https://data.cambridgema.gov/api/views/crnm-mw9n/rows.csv?accessType=DOWNLOAD\u0026bom=true'\nassessing     \u003c- fread(CAMBRIDGE_URL, nrows = 10)\nassessing$id  \u003c- 1:nrow(assessing)\nassessing$Zip \u003c- str_pad(assessing$Zip, 5, pad = '0')\n\nassessing.geo \u003c- getTracts(data       = assessing,\n                           unique_id  = 'id',\n                           address    = 'Mailing Address',\n                           city       = 'City',\n                           state      = 'State',\n                           postalcode = 'Zip')\n\nprint(assessing.geo)\n```\n| id|submit.addr                                             |match    |quality   |result.addr                                    |lat.lon             |  tiger.id|side | state| county|  tract| block|\n|--:|:-------------------------------------------------------|:--------|:---------|:----------------------------------------------|:-------------------|---------:|:----|-----:|------:|------:|-----:|\n|  3|P.O. BOX#19, CAMBRIDGE, MA, 02141                       |No_Match |          |                                               |                    |        NA|     |    NA|     NA|     NA|    NA|\n|  2|14 HILL STREET, WOBURN, MA, 01801                       |Match    |Exact     |14 HILL ST, WOBURN, MA, 01801                  |-71.11787,42.479633 |  87105447|L    |    25|     17| 333400|  1026|\n|  1|225 MONSIGNOR OBRIEN HWY, CAMBRIDGE, MA, 02141          |Match    |Exact     |225 MONSIGNOR OBRIEN HWY, CAMBRIDGE, MA, 02141 |-71.080376,42.37281 |  87108564|R    |    25|     17| 352101|  1006|\n| 10|777 E. EISENHOWER PKWY SUITE #235, ANN ARBOR, MA, 48108 |No_Match |          |                                               |                    |        NA|     |    NA|     NA|     NA|    NA|\n|  7|79 CHANDLER ST., #6, BOSTON, MA, 02116                  |Match    |Exact     |79 CHANDLER ST, BOSTON, MA, 02116              |-71.07247,42.346565 |  85698106|R    |    25|     25|  70300|  3003|\n|  6|P.O. BOX 444, WEST HYANNISPORT, MA, 02672               |No_Match |          |                                               |                    |        NA|     |    NA|     NA|     NA|    NA|\n|  5|261 LEDYARD ST., NEW LONDON, CT, 06320                  |Match    |Exact     |261 LEDYARD ST, NEW LONDON, CT, 06320          |-72.10897,41.36469  |  56850523|R    |     9|     11| 690300|  1013|\n|  4|262 MONSIGNOR O'BRIEN HWY, CAMBRIDGE, MA, 02141         |Match    |Non_Exact |262 MONSIGNOR OBRIEN HWY, CAMBRIDGE, MA, 02141 |-71.08212,42.37369  |  87090708|L    |    25|     17| 351500|  1033|\n|  9|4 CANAL PK, UNIT #109, CAMBRIDGE, MA, 02141             |Match    |Exact     |4 CANAL PARK, CAMBRIDGE, MA, 02141             |-71.07678,42.36993  | 636268605|R    |    25|     17| 352102|  1001|\n|  8|4 CANAL PARK #108, CAMBRIDGE, MA, 02141                 |Match    |Exact     |4 CANAL PARK, CAMBRIDGE, MA, 02141             |-71.07678,42.36993  | 636268605|R    |    25|     17| 352102|  1001|\n\n### Credits\nThe tractR logo is a mash-up of logos from the Noun Project: Tractor (Oliviu Stoian), Wagon (Symbolon), and US Map (DeeAnn Gray).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikjam%2Ftractr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikjam%2Ftractr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikjam%2Ftractr/lists"}