REFUGE Restrooms
App · Travel & Places · 8 actions
Find safe, accessible restrooms from REFUGE Restrooms, the volunteer-built directory of gender-neutral and ADA accessible restrooms used by transgender, intersex and gender-nonconforming people worldwide. Search around a set of coordinates and get the nearest ones with the distance and direction to each, filter for accessible, unisex or a changing table, look for a venue or a kind of place near a point, or search the whole directory by place name, city or a word from a listing's directions. Summarize how well an area is covered before a trip, and watch for listings added near a place, added anywhere, or corrected since a date. Every listing comes back with its directions, comments, community votes and a map link. No account or API key required.
Actions
| Action | What it does |
|---|---|
| Find restrooms nearby | Find the safe restrooms closest to a latitude and longitude, nearest first, each with how far away it is and in which direction. |
| Get new restrooms nearby | Get the restrooms added on or after a date within a distance of a latitude and longitude, newest first, each with how far away it is and in which direction: the weekly round-up for a city or a community group, with a yes or no beside it so a quiet week posts nothing. |
| Get new restrooms since | Get the restrooms added to the directory on or after a date: the check to run on a schedule. |
| Get updated restrooms since | Get the listings corrected or re-approved on or after a date. |
| List restrooms | List restrooms from the whole directory, newest listing first, a page at a time. |
| Search restrooms | Search the whole REFUGE Restrooms directory for text: a place name, a street, a city, a country, or a word from a listing's directions or comments. |
| Search restrooms nearby | Find the restrooms around a latitude and longitude whose listing mentions some words, nearest first: a venue's name to check it is listed, or a kind of place such as 'library' or 'single stall'. |
| Summarize restrooms nearby | Count the safe restrooms around a latitude and longitude and break them down: how many are ADA accessible, how many unisex, how many have a changing table, and which is nearest of each. |
Find restrooms nearby
Find the safe restrooms closest to a latitude and longitude, nearest first, each with how far away it is and in which direction. Filter for ADA accessible, unisex, or a changing table, and set a walking radius. REFUGE Restrooms searches 20 miles around the point and no further, so a rural search can come back empty. No API key required.
Inputs
- Latitude
latitudenumberRequired - The latitude to search around, in decimal degrees. Pair it with a longitude from the same source: a phone's location, a geocoded address, or an earlier step.From -90 to 90.
- Longitude
longitudenumberRequired - The longitude to search around, in decimal degrees. Negative west of Greenwich.From -180 to 180.
- Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Changing table only
changing_table_onlytrue/false - Optional. Only return restrooms with a baby changing table. Off by default. REFUGE Restrooms cannot filter on this itself, so this step reads through the results and filters the whole set rather than one page of it.Default:
false. - Within miles
max_distance_milesnumber - Optional. Only return restrooms within this many miles of the point. Leave blank for everything REFUGE Restrooms has within its fixed 20-mile radius. Use it for 'somewhere I can walk to'.From 0.1 to 20.
- Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10.
Outputs
countnumber- How many restrooms came back in this result.
has_restroomstrue/false- True when anything matched. Branch on this rather than on the list being empty.
latitudenumber- The latitude that was searched from.
longitudenumber- The longitude that was searched from.
max_distance_milesnumber- The distance limit that was applied, in miles. Null when there was none.
nearestobject- The closest matching restroom, lifted out of the list so a message can use it without indexing. Null when nothing matched.
restroomslist- The matching restrooms, nearest first.
restrooms_scannednumber- How many listings in the radius were read to build this answer.
scan_limit_reachedtrue/false- True when the search stopped at 500 listings before reaching the edge of the radius, so there may be more. Narrow it with a distance limit to be sure.
search_radius_milesnumber- The radius REFUGE Restrooms searches around a point, in miles. It is fixed at 20 and cannot be widened, so a point with nothing inside it returns no restrooms.
total_within_radiusnumber- How many listings REFUGE Restrooms holds within its 20-mile radius of the point, before any distance limit or changing-table filter.
Example output
{
"count": 1,
"has_restrooms": true,
"latitude": 37.7625,
"longitude": -122.435,
"max_distance_miles": 2.0,
"nearest": {
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
},
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
}
],
"restrooms_scanned": 100,
"scan_limit_reached": false,
"search_radius_miles": 20.0,
"total_within_radius": 214
}Get new restrooms nearby
Get the restrooms added on or after a date within a distance of a latitude and longitude, newest first, each with how far away it is and in which direction: the weekly round-up for a city or a community group, with a yes or no beside it so a quiet week posts nothing. Filter for accessible, unisex or a changing table. It reads the 500 newest listings at most, which is a few months of the whole directory, and says so if it stopped short. No API key required.
Inputs
- Since date
since_datedateRequired - The date to count from. Listings from this day onwards are returned; the day itself is included.
- Latitude
latitudenumberRequired - The latitude to search around, in decimal degrees. Pair it with a longitude from the same source: a phone's location, a geocoded address, or an earlier step.From -90 to 90.
- Longitude
longitudenumberRequired - The longitude to search around, in decimal degrees. Negative west of Greenwich.From -180 to 180.
- Within miles
max_distance_milesnumber - Optional. How far from the point a new listing may be, in miles: 20 by default and at most 100, enough for a city and its suburbs.From 0.1 to 100. Default:
20. - Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Changing table only
changing_table_onlytrue/false - Optional. Only return restrooms with a baby changing table. Off by default. REFUGE Restrooms cannot filter on this itself, so this step reads through the results and filters the whole set rather than one page of it.Default:
false. - Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10.
Outputs
countnumber- How many restrooms came back in this result.
covered_sincetext- How far back the answer is complete, YYYY-MM-DD. The since date itself, unless the step stopped short: then the day after the oldest listing it read was added, since that day was read only in part, and this date or a later one as the since date gets a complete answer.
has_new_restroomstrue/false- True when anything was added nearby. Branch on this to stay quiet on the weeks nobody contributed.
latitudenumber- The latitude that was searched from.
longitudenumber- The longitude that was searched from.
max_distance_milesnumber- The distance limit that was applied, in miles.
restroomslist- The new restrooms within the distance, newest first, each with how far it is from the point.
restrooms_scannednumber- How many new listings, anywhere in the directory, were read to build this answer.
scan_limit_reachedtrue/false- True when the step stopped at the 500 newest listings before reaching the date, so older ones near the point may be missing. Covered since says how far back it got.
since_datetext- The date that was counted from, YYYY-MM-DD.
total_added_anywherenumber- How many listings were added anywhere in the directory since the date (accessible or unisex ones only, when those filters are on), from the X-Total header.
total_nearbynumber- How many new listings were found within the distance, before Number of restrooms cut the list short.
Example output
{
"count": 1,
"covered_since": "2026-07-15",
"has_new_restrooms": true,
"latitude": 40.9168,
"longitude": -74.0743,
"max_distance_miles": 1.0,
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": true,
"city": "Paramus, NJ",
"comment": "Just walk inside the restrooms.",
"country": "US",
"created_at": "2026-07-17T19:14:54.220Z",
"created_date": "2026-07-17",
"direction": "south",
"directions": "The restrooms are located throughout the mall.",
"distance_km": 0.24,
"distance_miles": 0.15,
"downvote": 0,
"edit_id": 136548,
"full_address": "1 Garden State Plaza Blvd, Paramus, NJ 07652, Paramus, NJ, NJ, US",
"id": 136548,
"is_rated": true,
"latitude": 40.9147522,
"listing_url": "https://www.refugerestrooms.org/restrooms/136548",
"longitude": -74.0753269,
"map_url": "https://www.google.com/maps/search/?api=1&query=40.9147522,-74.0753269",
"name": "Westfield Garden Plaza Mall",
"rating_percentage": 100.0,
"score": 2,
"state": "NJ",
"street": "1 Garden State Plaza Blvd, Paramus, NJ 07652",
"total_votes": 2,
"unisex": true,
"updated_at": "2026-07-17T19:14:54.366Z",
"updated_date": "2026-07-17",
"upvote": 2
}
],
"restrooms_scanned": 491,
"scan_limit_reached": false,
"since_date": "2026-07-15",
"total_added_anywhere": 491,
"total_nearby": 1
}Get new restrooms since
Get the restrooms added to the directory on or after a date: the check to run on a schedule. Pass the date of the last run and this returns only what volunteers have contributed since, with a yes or no beside it so a quiet week posts nothing. No API key required.
Inputs
- Since date
since_datedateRequired - The date to count from. Listings from this day onwards are returned; the day itself is included.
- Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10. - Page
pagenumber - Optional. Which page of results to fetch, counting from 1. Use the next page from the previous result to walk through them all.At least 1. Default:
1. - Skip
offsetnumber - Optional. Pad the results by this many before the page is taken. 0 by default, and Page is the usual way to move through results. The result's 'offset applied' says whether the service honored it.At least 0. Default:
0.
Outputs
countnumber- How many restrooms came back in this result.
date_fieldtext- Which timestamp was filtered on. Always created_at for this action.
has_moretrue/false- True when there are more pages after this one.
has_new_restroomstrue/false- True when anything was added. Branch on this to stay quiet on the weeks nobody contributed.
next_pagenumber- The page number that fetches the next page. Null when this is the last one.
offsetnumber- The padding that was asked for before this page was taken.
offset_appliedtrue/false- True when REFUGE Restrooms confirmed it applied the padding. False means this deployment ignored 'Skip' and answered from the start of the results, so page through with Page instead.
pagenumber- The page that was fetched.
per_pagenumber- How many restrooms a page holds.
restroomslist- The new restrooms in this page, newest first.
since_datetext- The date that was counted from, YYYY-MM-DD.
total_countnumber- How many restrooms matched in total, across every page. Read from the X-Total header the service sends, since the body is a bare list.
total_pagesnumber- How many pages the whole match runs to.
Example output
{
"count": 1,
"date_field": "created_at",
"has_more": true,
"has_new_restrooms": true,
"next_page": 2,
"offset": 0,
"offset_applied": true,
"page": 1,
"per_page": 10,
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
}
],
"since_date": "2026-08-01",
"total_count": 37,
"total_pages": 4
}Get updated restrooms since
Get the listings corrected or re-approved on or after a date. An edit on REFUGE Restrooms replaces the listing once a moderator approves it, so this is how a workflow notices that a restroom it saved has changed: moved, closed, or had its accessibility corrected. Rows come back newest-listed first rather than most-recently-changed first, which is how the service orders them. No API key required.
Inputs
- Since date
since_datedateRequired - The date to count from. Listings from this day onwards are returned; the day itself is included.
- Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10. - Page
pagenumber - Optional. Which page of results to fetch, counting from 1. Use the next page from the previous result to walk through them all.At least 1. Default:
1. - Skip
offsetnumber - Optional. Pad the results by this many before the page is taken. 0 by default, and Page is the usual way to move through results. The result's 'offset applied' says whether the service honored it.At least 0. Default:
0.
Outputs
countnumber- How many restrooms came back in this result.
date_fieldtext- Which timestamp was filtered on. Always updated_at for this action.
has_moretrue/false- True when there are more pages after this one.
has_updated_restroomstrue/false- True when anything was changed in the period.
next_pagenumber- The page number that fetches the next page. Null when this is the last one.
offsetnumber- The padding that was asked for before this page was taken.
offset_appliedtrue/false- True when REFUGE Restrooms confirmed it applied the padding. False means this deployment ignored 'Skip' and answered from the start of the results, so page through with Page instead.
pagenumber- The page that was fetched.
per_pagenumber- How many restrooms a page holds.
restroomslist- The updated restrooms in this page.
since_datetext- The date that was counted from, YYYY-MM-DD.
total_countnumber- How many restrooms matched in total, across every page. Read from the X-Total header the service sends, since the body is a bare list.
total_pagesnumber- How many pages the whole match runs to.
Example output
{
"count": 1,
"date_field": "updated_at",
"has_more": true,
"has_updated_restrooms": true,
"next_page": 2,
"offset": 0,
"offset_applied": true,
"page": 1,
"per_page": 10,
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
}
],
"since_date": "2026-08-01",
"total_count": 37,
"total_pages": 4
}List restrooms
List restrooms from the whole directory, newest listing first, a page at a time. Filter to accessible or unisex listings. Use it for a feed of what the community is adding, or to sample the dataset; use 'Find restrooms nearby' when you know where you are and 'Search restrooms' when you know what you are looking for. No API key required.
Inputs
- Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10. - Page
pagenumber - Optional. Which page of results to fetch, counting from 1. Use the next page from the previous result to walk through them all.At least 1. Default:
1. - Skip
offsetnumber - Optional. Pad the results by this many before the page is taken. 0 by default, and Page is the usual way to move through results. The result's 'offset applied' says whether the service honored it.At least 0. Default:
0.
Outputs
countnumber- How many restrooms came back in this result.
has_moretrue/false- True when there are more pages after this one.
next_pagenumber- The page number that fetches the next page. Null when this is the last one.
offsetnumber- The padding that was asked for before this page was taken.
offset_appliedtrue/false- True when REFUGE Restrooms confirmed it applied the padding. False means this deployment ignored 'Skip' and answered from the start of the results, so page through with Page instead.
pagenumber- The page that was fetched.
per_pagenumber- How many restrooms a page holds.
restroomslist- The restrooms in this page, newest listing first.
total_countnumber- How many restrooms matched in total, across every page. Read from the X-Total header the service sends, since the body is a bare list.
total_pagesnumber- How many pages the whole match runs to.
Example output
{
"count": 1,
"has_more": true,
"next_page": 2,
"offset": 0,
"offset_applied": true,
"page": 1,
"per_page": 10,
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
}
],
"total_count": 37,
"total_pages": 4
}Search restrooms
Search the whole REFUGE Restrooms directory for text: a place name, a street, a city, a country, or a word from a listing's directions or comments. Use it to find a specific venue, or everything listed in a town you have no coordinates for. Filter to accessible or unisex listings and page through the matches. No API key required.
Inputs
- Search text
querytextRequired - The text to look for. It is matched against a listing's name, street, city, state, country, directions and comments at once, ignoring capitals and accents.
- Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10. - Page
pagenumber - Optional. Which page of results to fetch, counting from 1. Use the next page from the previous result to walk through them all.At least 1. Default:
1. - Skip
offsetnumber - Optional. Pad the results by this many before the page is taken. 0 by default, and Page is the usual way to move through results. The result's 'offset applied' says whether the service honored it.At least 0. Default:
0.
Outputs
countnumber- How many restrooms came back in this result.
has_moretrue/false- True when there are more pages after this one.
next_pagenumber- The page number that fetches the next page. Null when this is the last one.
offsetnumber- The padding that was asked for before this page was taken.
offset_appliedtrue/false- True when REFUGE Restrooms confirmed it applied the padding. False means this deployment ignored 'Skip' and answered from the start of the results, so page through with Page instead.
pagenumber- The page that was fetched.
per_pagenumber- How many restrooms a page holds.
querytext- The text that was searched for.
restroomslist- The matching restrooms in this page.
total_countnumber- How many restrooms matched in total, across every page. Read from the X-Total header the service sends, since the body is a bare list.
total_pagesnumber- How many pages the whole match runs to.
Example output
{
"count": 1,
"has_more": true,
"next_page": 2,
"offset": 0,
"offset_applied": true,
"page": 1,
"per_page": 10,
"query": "San Francisco",
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
}
],
"total_count": 37,
"total_pages": 4
}Search restrooms nearby
Find the restrooms around a latitude and longitude whose listing mentions some words, nearest first: a venue's name to check it is listed, or a kind of place such as 'library' or 'single stall'. REFUGE Restrooms can search text or search around a point but not both at once, so this step reads outwards from the point and matches each listing itself, the 500 nearest at most, and says when it stopped short of the distance. Filter for accessible, unisex or a changing table. No API key required.
Inputs
- Search text
querytextRequired - The words to look for, such as a venue's name or a kind of place. A listing matches when every word starts a word in its name, address, directions or comment, so 'andy' finds Orphan Andy's. Capitals, accents and apostrophes are ignored.
- Latitude
latitudenumberRequired - The latitude to search around, in decimal degrees. Pair it with a longitude from the same source: a phone's location, a geocoded address, or an earlier step.From -90 to 90.
- Longitude
longitudenumberRequired - The longitude to search around, in decimal degrees. Negative west of Greenwich.From -180 to 180.
- Within miles
max_distance_milesnumber - Optional. How far from the point to look, in miles: 1 by default, and at most the 20 miles REFUGE Restrooms searches around a point. The search reads outwards from the point, the 500 nearest listings at most: in a big city those end a few miles out (under 4 around San Francisco's Castro), and Scan limit reached then says the circle was not read to its edge.From 0.1 to 20. Default:
1. - Accessible only
accessible_onlytrue/false - Optional. Only return restrooms marked ADA accessible. Off by default. Turning it off does not mean 'only ones that are not accessible': it means no filter at all, which is all REFUGE Restrooms offers.Default:
false. - Unisex only
unisex_onlytrue/false - Optional. Only return restrooms that are unisex, all-gender or single-occupancy. Off by default. As with Accessible only, turning it off applies no filter rather than reversing it.Default:
false. - Changing table only
changing_table_onlytrue/false - Optional. Only return restrooms with a baby changing table. Off by default. REFUGE Restrooms cannot filter on this itself, so this step reads through the results and filters the whole set rather than one page of it.Default:
false. - Number of restrooms
limitnumber - Optional. How many restrooms to return. Between 1 and 100; 10 by default. REFUGE Restrooms refuses a larger page.From 1 to 100. Default:
10.
Outputs
countnumber- How many restrooms came back in this result.
has_restroomstrue/false- True when anything matched. Branch on this to tell a listed venue from one that is not, but when Scan limit reached is true a venue further out may not have been read.
latitudenumber- The latitude that was searched from.
longitudenumber- The longitude that was searched from.
max_distance_milesnumber- The distance asked for, in miles. When Scan limit reached is true, the search stopped closer in than this.
nearestobject- The closest matching restroom, lifted out of the list so a message can use it without indexing. Null when nothing matched.
querytext- The text that was searched for.
restroomslist- The matching restrooms, nearest first.
restrooms_scannednumber- How many listings in the radius were read to build this answer.
scan_limit_reachedtrue/false- True when the search stopped at 500 listings before reaching the edge of the radius, so there may be more. Narrow it with a distance limit to be sure.
search_radius_milesnumber- The radius REFUGE Restrooms searches around a point, in miles. It is fixed at 20 and cannot be widened, so a point with nothing inside it returns no restrooms.
total_within_radiusnumber- How many listings REFUGE Restrooms holds within its 20-mile radius of the point, before any distance limit or changing-table filter.
Example output
{
"count": 1,
"has_restrooms": true,
"latitude": 37.7625,
"longitude": -122.435,
"max_distance_miles": 1.0,
"nearest": {
"accessible": true,
"approved": true,
"changing_table": false,
"city": "San Francisco",
"comment": "Need to get a key",
"country": "US",
"created_at": "2014-02-02T20:49:02.877Z",
"created_date": "2014-02-02",
"direction": "northeast",
"directions": "in the back",
"distance_km": 0.67,
"distance_miles": 0.42,
"downvote": 4,
"edit_id": 9,
"full_address": "262 Church St, San Francisco, CA, US",
"id": 9,
"is_rated": true,
"latitude": 37.7663539,
"listing_url": "https://www.refugerestrooms.org/restrooms/9",
"longitude": -122.4290851,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7663539,-122.4290851",
"name": "Church Street Cafe",
"rating_percentage": 0.0,
"score": -4,
"state": "CA",
"street": "262 Church St",
"total_votes": 4,
"unisex": true,
"updated_at": "2014-02-02T20:49:02.877Z",
"updated_date": "2014-02-02",
"upvote": 0
},
"query": "Church Street Cafe",
"restrooms": [
{
"accessible": true,
"approved": true,
"changing_table": false,
"city": "San Francisco",
"comment": "Need to get a key",
"country": "US",
"created_at": "2014-02-02T20:49:02.877Z",
"created_date": "2014-02-02",
"direction": "northeast",
"directions": "in the back",
"distance_km": 0.67,
"distance_miles": 0.42,
"downvote": 4,
"edit_id": 9,
"full_address": "262 Church St, San Francisco, CA, US",
"id": 9,
"is_rated": true,
"latitude": 37.7663539,
"listing_url": "https://www.refugerestrooms.org/restrooms/9",
"longitude": -122.4290851,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7663539,-122.4290851",
"name": "Church Street Cafe",
"rating_percentage": 0.0,
"score": -4,
"state": "CA",
"street": "262 Church St",
"total_votes": 4,
"unisex": true,
"updated_at": "2014-02-02T20:49:02.877Z",
"updated_date": "2014-02-02",
"upvote": 0
}
],
"restrooms_scanned": 100,
"scan_limit_reached": false,
"search_radius_miles": 20.0,
"total_within_radius": 1171
}Summarize restrooms nearby
Count the safe restrooms around a latitude and longitude and break them down: how many are ADA accessible, how many unisex, how many have a changing table, and which is nearest of each. Returns numbers rather than a list, so it is the cheap way to answer 'is this area covered?' before deciding whether to list anything. No API key required.
Inputs
- Latitude
latitudenumberRequired - The latitude to search around, in decimal degrees. Pair it with a longitude from the same source: a phone's location, a geocoded address, or an earlier step.From -90 to 90.
- Longitude
longitudenumberRequired - The longitude to search around, in decimal degrees. Negative west of Greenwich.From -180 to 180.
- Within miles
max_distance_milesnumber - Optional. Only return restrooms within this many miles of the point. Leave blank for everything REFUGE Restrooms has within its fixed 20-mile radius. Use it for 'somewhere I can walk to'.From 0.1 to 20.
Outputs
accessible_and_unisex_countnumber- How many are both accessible and unisex.
accessible_countnumber- How many of them are marked ADA accessible.
changing_table_countnumber- How many of them have a baby changing table.
countnumber- How many restrooms are listed around the point.
has_restroomstrue/false- True when there is at least one. Branch on this to tell 'no coverage' from 'plenty'.
latitudenumber- The latitude that was searched from.
longitudenumber- The longitude that was searched from.
max_distance_milesnumber- The distance limit that was applied, in miles. Null when there was none.
nearestobject- The closest restroom of any kind. Null when there are none.
nearest_accessibleobject- The closest ADA accessible restroom. Null when there is none.
nearest_unisexobject- The closest unisex restroom. Null when there is none.
rated_countnumber- How many have been voted on by anyone. The rest are unreviewed rather than badly reviewed.
restrooms_scannednumber- How many listings in the radius were read to build this answer.
scan_limit_reachedtrue/false- True when the search stopped at 500 listings before reaching the edge of the radius, so there may be more. Narrow it with a distance limit to be sure.
search_radius_milesnumber- The radius REFUGE Restrooms searches around a point, in miles. It is fixed at 20 and cannot be widened, so a point with nothing inside it returns no restrooms.
total_within_radiusnumber- How many listings REFUGE Restrooms holds within its 20-mile radius of the point, before any distance limit or changing-table filter.
unisex_countnumber- How many of them are unisex or all-gender.
Example output
{
"accessible_and_unisex_count": 7,
"accessible_count": 8,
"changing_table_count": 3,
"count": 12,
"has_restrooms": true,
"latitude": 37.7625,
"longitude": -122.435,
"max_distance_miles": 1.0,
"nearest": {
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
},
"nearest_accessible": {
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
},
"nearest_unisex": {
"accessible": true,
"approved": true,
"changing_table": true,
"city": "San Francisco",
"comment": "Single-stall, gender-neutral, no key needed.",
"country": "US",
"created_at": "2014-08-27T21:33:15.000Z",
"created_date": "2014-08-27",
"direction": "northeast",
"directions": "Ground floor, past the reception desk on the left.",
"distance_km": 0.51,
"distance_miles": 0.32,
"downvote": 3,
"edit_id": 12345,
"full_address": "1800 Market St, San Francisco, CA, US",
"id": 12345,
"is_rated": true,
"latitude": 37.7708,
"listing_url": "https://www.refugerestrooms.org/restrooms/12345",
"longitude": -122.4221,
"map_url": "https://www.google.com/maps/search/?api=1&query=37.7708,-122.4221",
"name": "The SF LGBT Center",
"rating_percentage": 88.0,
"score": 19,
"state": "CA",
"street": "1800 Market St",
"total_votes": 25,
"unisex": true,
"updated_at": "2021-03-04T18:02:41.000Z",
"updated_date": "2021-03-04",
"upvote": 22
},
"rated_count": 5,
"restrooms_scanned": 100,
"scan_limit_reached": false,
"search_radius_miles": 20.0,
"total_within_radius": 214,
"unisex_count": 11
}