PostcodesioR
PostcodesioR: An R package for UK geocoding - Published in JOSS (2023)
Science Score: 93.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 7 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
api-wrapper
geocoder
geographic-data
peer-reviewed
postcode
r
r-package
rstats
uk
Last synced: 6 months ago
·
JSON representation
Repository
API wrapper around postcodes.io - free UK postcode lookup and geocoder
Basic Info
- Host: GitHub
- Owner: ropensci
- Language: R
- Default Branch: master
- Homepage: https://docs.ropensci.org/PostcodesioR
- Size: 1.46 MB
Statistics
- Stars: 41
- Watchers: 5
- Forks: 7
- Open Issues: 4
- Releases: 1
Topics
api-wrapper
geocoder
geographic-data
peer-reviewed
postcode
r
r-package
rstats
uk
Created over 9 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
Changelog
README.Rmd
--- title: "PostcodesioR" output: rmarkdown::github_document --- # PostcodesioR[](https://travis-ci.org/ropensci/PostcodesioR) [](https://www.gnu.org/licenses/gpl-3.0.html) [](https://github.com/ropensci/software-review/issues/176) [](https://www.repostatus.org/) [](https://cran.r-project.org/package=PostcodesioR) [](https://doi.org/10.21105/joss.05334)  An API wrapper around [postcodes.io](https://postcodes.io/) - free UK postcode lookup and geocoder. This package helps to find and transform information about UK administrative geography like postcodes, LSOA, MSOA, constituencies, counties, wards, districts, CCG or NUTS. The package is based exclusively on open data provided by postcodes.io. PostcodesioR can be used by data scientists or social scientists working with geocoded UK data. A common task when working with such data is aggregating geocoded data on different administrative levels, e.g. turning postcode-level data into counties or regions. This package can help in achieving this and in many other cases when changing the aggregation of geographic data is required. ## Installation This package can be installed from GitHub (developmental version) or CRAN (stable). In order to install PostcodesioR use one of the following commands: ```{r, eval = FALSE} # stable version install.packages("PostcodesioR") ``` or ```{r, eval = FALSE} # developmental version if(!require("devtools")) { install.packages("devtools") } devtools::install_github("ropensci/PostcodesioR") ``` ## Loading Load the package by typing ```{r, warning = FALSE, message = FALSE} library(PostcodesioR) ``` ## Examples Where possible, I tried to return a data frame. Unfortunately, a lot of API calls return more complex data and in those cases it is safer to use lists. The API limits the number of returned calls. Check functions' documentation for more details. For additional information about the returned data and the function calls see the original [documentation](https://postcodes.io/docs). The main function of this package provides information related to a given postcode ```{r, message = FALSE, warning = FALSE} lookup_result <- postcode_lookup("EC1Y8LX") #overview str(lookup_result) ``` Check the [vignette](https://docs.ropensci.org/PostcodesioR/articles/Introduction.html) to see all functions in action. ## Citation Please cite this package if it is used in a publication `Walczak, E. J., (2023). PostcodesioR: An R package for UK geocoding. Journal of Open Source Software, 8(84), 5334, https://doi.org/10.21105/joss.05334` BibTeX entry is here: ```{latex, echo=TRUE, eval=FALSE} @article{postcodesior:2023, title = {{PostcodesioR: An R package for UK geocoding}}, author = {Eryk J. Walczak}, journal = {Journal of Open Source Software}, volume = {8}, number = {84}, pages = {5334}, year = {2023}, doi = {10.21105/joss.05334}, note = {R package version 0.3.1}, url = {https://cran.r-project.org/web/packages/PostcodesioR/}, } ``` ## Notes Currently, there is a limit to the number of API calls that can be made. However, [postcodes.io](https://postcodes.io/) provides full list of geolocation data that can be used locally without limitations. The original data is sourced from [Office for National Statistics Data Portal](https://geoportal.statistics.gov.uk/). That [file](https://github.com/ideal-postcodes/postcodes.io/blob/master/latest) is rather large so I didn't include it in the package. Go to the package's [website](https://docs.ropensci.org/PostcodesioR/) or to my [blog](https://walczak.org/tag/postcodesior/) for more examples. ## Code of Conduct Please note that this project is released with a [Contributor Code of Conduct](https://github.com/ropensci/PostcodesioR/blob/master/CONDUCT.md). By participating in this project you agree to abide by its terms. [](https://ropensci.org)
Owner
- Name: rOpenSci
- Login: ropensci
- Kind: organization
- Email: info@ropensci.org
- Location: Berkeley, CA
- Website: https://ropensci.org/
- Twitter: rOpenSci
- Repositories: 307
- Profile: https://github.com/ropensci
JOSS Publication
PostcodesioR: An R package for UK geocoding
Published
April 14, 2023
Volume 8, Issue 84, Page 5334
Tags
geocoding postcodes UKGitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Eryk | e****k@h****m | 276 |
| Layik Hama | l****a@g****m | 2 |
| Robin Lovelace | r****x@g****m | 1 |
| AndreasSoteriades | 4****s | 1 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 14
- Total pull requests: 5
- Average time to close issues: about 1 month
- Average time to close pull requests: 2 days
- Total issue authors: 11
- Total pull request authors: 5
- Average comments per issue: 2.79
- Average comments per pull request: 0.8
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- dave-lovell (3)
- layik (2)
- jbl0ndie (1)
- paulfwb (1)
- vapniks (1)
- sckott (1)
- MikeJohnPage (1)
- broganyoung (1)
- paulb20 (1)
- barobinson (1)
- josho88 (1)
Pull Request Authors
- dave-lovell (2)
- AndreasSoteriades (1)
- jeroen (1)
- layik (1)
- Robinlovelace (1)
Top Labels
Issue Labels
enhancement (3)
invalid (2)
bug (2)
Pull Request Labels
Dependencies
DESCRIPTION
cran
- R >= 3.1 depends
- httr * imports
- covr * suggests
- dplyr * suggests
- knitr * suggests
- purrr * suggests
- rmarkdown * suggests
- testthat * suggests
[](https://travis-ci.org/ropensci/PostcodesioR)
[](https://www.gnu.org/licenses/gpl-3.0.html)
[](https://github.com/ropensci/software-review/issues/176)
[](https://www.repostatus.org/)
[](https://cran.r-project.org/package=PostcodesioR)
[](https://doi.org/10.21105/joss.05334)

An API wrapper around [postcodes.io](https://postcodes.io/) - free UK postcode lookup and geocoder. This package helps to find and transform information about UK administrative geography like postcodes, LSOA, MSOA, constituencies, counties, wards, districts, CCG or NUTS.
The package is based exclusively on open data provided by postcodes.io. PostcodesioR can be used by data scientists or social scientists working with geocoded UK data. A common task when working with such data is aggregating geocoded data on different administrative levels, e.g. turning postcode-level data into counties or regions. This package can help in achieving this and in many other cases when changing the aggregation of geographic data is required.
## Installation
This package can be installed from GitHub (developmental version) or CRAN (stable).
In order to install PostcodesioR use one of the following commands:
```{r, eval = FALSE}
# stable version
install.packages("PostcodesioR")
```
or
```{r, eval = FALSE}
# developmental version
if(!require("devtools")) {
install.packages("devtools")
}
devtools::install_github("ropensci/PostcodesioR")
```
## Loading
Load the package by typing
```{r, warning = FALSE, message = FALSE}
library(PostcodesioR)
```
## Examples
Where possible, I tried to return a data frame. Unfortunately, a lot of API calls return more complex data and in those cases it is safer to use lists. The API limits the number of returned calls. Check functions' documentation for more details.
For additional information about the returned data and the function calls see the original [documentation](https://postcodes.io/docs).
The main function of this package provides information related to a given postcode
```{r, message = FALSE, warning = FALSE}
lookup_result <- postcode_lookup("EC1Y8LX")
#overview
str(lookup_result)
```
Check the [vignette](https://docs.ropensci.org/PostcodesioR/articles/Introduction.html) to see all functions in action.
## Citation
Please cite this package if it is used in a publication
`Walczak, E. J., (2023). PostcodesioR: An R package for UK geocoding. Journal of Open Source Software, 8(84), 5334, https://doi.org/10.21105/joss.05334`
BibTeX entry is here:
```{latex, echo=TRUE, eval=FALSE}
@article{postcodesior:2023,
title = {{PostcodesioR: An R package for UK geocoding}},
author = {Eryk J. Walczak},
journal = {Journal of Open Source Software},
volume = {8},
number = {84},
pages = {5334},
year = {2023},
doi = {10.21105/joss.05334},
note = {R package version 0.3.1},
url = {https://cran.r-project.org/web/packages/PostcodesioR/},
}
```
## Notes
Currently, there is a limit to the number of API calls that can be made. However, [postcodes.io](https://postcodes.io/) provides full list of geolocation data that can be used locally without limitations. The original data is sourced from [Office for National Statistics Data Portal](https://geoportal.statistics.gov.uk/).
That [file](https://github.com/ideal-postcodes/postcodes.io/blob/master/latest) is rather large so I didn't include it in the package.
Go to the package's [website](https://docs.ropensci.org/PostcodesioR/) or to my [blog](https://walczak.org/tag/postcodesior/) for more examples.
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](https://github.com/ropensci/PostcodesioR/blob/master/CONDUCT.md). By participating in this project you agree to abide by its terms.
[](https://ropensci.org)
