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 or the organisation behind it, see the API docs, or the Refuge Restrooms homepage.

The API does not require registration or an API key.


You can install the development version from GitHub with:


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

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

Citing refuge

Odell E (2018). refuge: Locate Trans and Intersex-Friendly Toilets. doi: 10.5281/zenodo.1219900 (URL:, R package version 0.1.0, <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 0.1.0},
    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.