{"id":13858354,"url":"https://github.com/hrbrmstr/rgeocodio","last_synced_at":"2025-03-21T12:30:52.783Z","repository":{"id":141238747,"uuid":"83996924","full_name":"hrbrmstr/rgeocodio","owner":"hrbrmstr","description":"Tools to Work with the https://geocod.io/ API","archived":false,"fork":false,"pushed_at":"2020-06-03T18:40:11.000Z","size":35,"stargazers_count":56,"open_issues_count":4,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-18T01:11:15.869Z","etag":null,"topics":["geocoding","geocodio","r","r-cyber","reverse-geocode","reverse-geocoding","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrbrmstr.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-03-05T19:41:07.000Z","updated_at":"2023-02-28T10:11:43.000Z","dependencies_parsed_at":"2024-04-17T02:44:25.417Z","dependency_job_id":null,"html_url":"https://github.com/hrbrmstr/rgeocodio","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/hrbrmstr%2Frgeocodio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frgeocodio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frgeocodio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Frgeocodio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/rgeocodio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244799207,"owners_count":20512206,"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":["geocoding","geocodio","r","r-cyber","reverse-geocode","reverse-geocoding","rstats"],"created_at":"2024-08-05T03:02:05.464Z","updated_at":"2025-03-21T12:30:52.144Z","avatar_url":"https://github.com/hrbrmstr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: rmarkdown::github_document\n---\n\n`rgeocodio` : Tools to Work with the \u003chttps://geocod.io/\u003e 'API'\n\nNOTE: You need an [API key](https://dash.geocod.io/) to use this package.\n\nThere is a _great deal_ of API documentation in the main pacakge help page. It is \n_highly_ suggested you do `help(\"rgeocodio-package\")` after installing the package.\n\nThe following functions are implemented:\n\n- `gio_auth`:\tGet or set GEOCODIO_API_KEY value\n- `gio_batch_geocode`:\tGeocode up to 10,000 addresses\n- `gio_batch_reverse`:\tReverse geocode up to 10,000 coordinates\n- `gio_geocode`:\tGeocode a single address\n- `gio_geocode_components`:\tGeocode a single address\n- `gio_reverse`:\tReverse geocode a single lat/lon pair\n\nAll functions return tidy `tibble`s with sane column names.\n\n### TODO\n\n- \u003cstrike\u003eenable selection of additional fields\u003c/strike\u003e\n- \u003cstrike\u003ebetter return types\u003c/strike\u003e\n- a tad more error checking (especially processing API [status codes](https://geocod.io/docs/#errors)\n- more/better tests along with full code coverage\n- Add R examples to the [official documentation](https://github.com/geocodio/docs)\n\n### Installation\n\n```{r eval=FALSE}\ndevtools::install_github(\"hrbrmstr/rgeocodio\")\n```\n\n```{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}\noptions(width=120)\n```\n\n### Usage\n\n```{r message=FALSE, warning=FALSE, error=FALSE}\nlibrary(rgeocodio)\n\n# current verison\npackageVersion(\"rgeocodio\")\n\ngio_geocode(\"1109 N Highland St, Arlington, VA\")\n\ngio_geocode_components(\"1109 N Highland St\", \"Arlington\", \"VA\")\n\ngio_reverse(38.9002898, -76.9990361)\n\naddresses \u003c- c(\n  \"1109 N Highland St, Arlington VA\",\n  \"525 University Ave, Toronto, ON, Canada\",\n  \"4410 S Highway 17 92, Casselberry FL\",\n  \"15000 NE 24th Street, Redmond WA\",\n  \"17015 Walnut Grove Drive, Morgan Hill CA\"\n)\n\ngio_batch_geocode(addresses)\n\ndata.frame(\n  lat = c(35.9746000, 32.8793700, 33.8337100, 35.4171240),\n  lon = c(-77.9658000, -96.6303900, -117.8362320, -80.6784760)\n) -\u003e to_code\n\ngio_batch_reverse(to_code)\n```\n\n### Extra Fields\n\n```{r message=FALSE, warning=FALSE, error=FALSE}\ngio_geocode(\"1109 N Highland St, Arlington, VA\", fields=c(\"cd\", \"stateleg\"))\n\ngio_geocode_components(\"1109 N Highland St\", \"Arlington\", \"VA\",\n                      fields=c(\"census\", \"stateleg\"))\n\ngio_reverse(38.9002898, -76.9990361, fields=c(\"census\", \"stateleg\"))\n\ngio_batch_geocode(addresses, fields=c(\"cd\", \"stateleg\"))\n\ngio_batch_reverse(to_code, fields=c(\"census\", \"stateleg\"))\n```\n\n### Test Results\n\n```{r message=FALSE, warning=FALSE, error=FALSE}\nlibrary(rgeocodio)\nlibrary(testthat)\n\ndate()\n\ntest_dir(\"tests/\")\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Frgeocodio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Frgeocodio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Frgeocodio/lists"}