License: MIT CRAN_Status_Badge GitHub tag R build status AppVeyor build status Coverage status DOI

The refuge package provides access to the Refuge Restrooms API in R.

Refuge Restrooms “is a web application that seeks to provide safe restroom access for transgender, intersex, and gender nonconforming individuals.” The web application includes a public API, which this package allows access to. The API does not require users to sign up or use a key. For further details on the API see the API docs, or the package vignette. For details on the organisation providing this data, check out the Refuge Restrooms homepage.

The API does not require registration or an API key.


To install the latest version from CRAN, use:


You can install the latest development version from GitHub with:

# install.packages("devtools")


Locating all restrooms close to a given set of coordinates, in this case somewhere in New Jersey:


bathrooms <- rfg_location(lat=39, lng=-75)

Locating all unisex, accessible restrooms in Toronto, using the rfg_search() function.

toronto <- rfg_search("toronto", accessible = TRUE, unisex = TRUE)

For more detailed examples, check out the vignette.

Citing refuge

Odell E (2018). refuge: Locate Trans and Intersex-Friendly Toilets. doi: 10.5281/zenodo.1219900, R package version, <URL:>.

A BibTeX entry for LaTeX users is

    title = {{refuge}: Locate Trans and Intersex-Friendly Toilets},
    author = {Evan Odell},
    year = {2018},
    note = {R package version},
    doi = {10.5281/zenodo.1219900},
    url = {},


Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

This project is not affiliated with the Refuge Restrooms application.