To use this endpoint you must specify.
page = indicates a page value. For example: 1.
unisex = indicates if the toilets to be received are unisex. For example (true or false) this parameter is optional.
Indicates a latitude. For example (45.4215).
Indicates a longitude. For example (-75.6972).
Restrooms by Coordinates - Endpoint Features
| Object | Description |
|---|---|
page |
[Required] Indicates a page value |
unisex |
Optional Indicate if you wish to receive unisex bathrooms |
lat |
[Required] Indicates a latitude |
lng |
[Required] Indicates a longitude |
[{"id":3114,"name":"World Exchange Centre","street":"111 Albert Street","city":"Ottawa","state":"ON","accessible":true,"unisex":true,"directions":"first floor ","comment":null,"latitude":45.4207502,"longitude":-75.6954252,"created_at":"2014-02-02T20:53:32.889Z","updated_at":"2014-02-02T20:53:32.889Z","downvote":1,"upvote":1,"country":"CA","changing_table":false,"edit_id":3114,"approved":true,"distance":0.10045909050216603,"bearing":"112.902605927668"},{"id":22076,"name":"Ottawa Public Library Main Branch","street":"120 Metcalfe St.","city":"Ottawa","state":"Ontario","accessible":true,"unisex":true,"directions":"In the basement","comment":"","latitude":45.42037029999999,"longitude":-75.6954949,"created_at":"2016-05-14T19:31:57.804Z","updated_at":"2016-05-14T19:31:57.804Z","downvote":0,"upvote":0,"country":"CA","changing_table":false,"edit_id":22076,"approved":true,"distance":0.11371145579027934,"bearing":"123.526137080817"},{"id":34743,"name":"Starbucks ","street":"124 O'Connor","city":"Ottawa","state":"Ontario","accessible":true,"unisex":true,"directions":"","comment":"","latitude":45.4193979,"longitude":-75.69745420000001,"created_at":"2017-05-02T13:58:59.689Z","updated_at":"2017-05-02T13:58:59.689Z","downvote":0,"upvote":0,"country":"CA","changing_table":false,"edit_id":34743,"approved":true,"distance":0.1457633198526277,"bearing":"186.895109539063"},{"id":22936,"name":"Bridgehead Wellington","street":"1024 Wellington St","city":"Ottawa","state":"ON","accessible":true,"unisex":true,"directions":"","comment":"","latitude":45.4237451,"longitude":-75.6974208,"created_at":"2016-06-14T03:32:04.967Z","updated_at":"2016-06-14T03:32:04.967Z","downvote":0,"upvote":0,"country":"CA","changing_table":false,"edit_id":22936,"approved":true,"distance":0.15549054215477126,"bearing":"354.383165256045"},{"id":4104,"name":"Bridgehead ","street":"109 Bank Street","city":"Ottawa","state":"ON","accessible":false,"unisex":true,"directions":null,"comment":null,"latitude":45.4199243,"longitude":-75.70019669999999,"created_at":"2014-02-02T20:55:09.560Z","updated_at":"2014-02-02T20:55:09.560Z","downvote":1,"upvote":0,"country":"CA","changing_table":false,"edit_id":4104,"approved":true,"distance":0.181585330955017,"bearing":"242.264080027176"},{"id":46021,"name":"NAC","street":"1 elgin street ","city":"Ottawa","state":"On","accessible":true,"unisex":false,"directions":"Downstairs near southam hall","comment":"","latitude":45.4231893,"longitude":-75.6939477,"created_at":"2018-11-23T00:24:24.684Z","updated_at":"2018-11-23T00:24:24.860Z","downvote":0,"upvote":0,"country":"CA","changing_table":true,"edit_id":46021,"approved":true,"distance":0.19621160223385692,"bearing":"62.551867011929"},{"id":51658,"name":"240 Sparks","street":"235 Queen St","city":"Ottawa","state":"Ontario ","accessible":true,"unisex":true,"directions":"Far end of the building, in the food court, lower level (C1)","comment":"240 Sparks and 235 Queen are the same building","latitude":45.4204168,"longitude":-75.7018016,"created_at":"2019-08-07T17:42:33.590Z","updated_at":"2019-08-07T17:42:33.717Z","downvote":0,"upvote":1,"country":"CA","changing_table":true,"edit_id":51658,"approved":true,"distance":0.2353752704486376,"bearing":"256.753928191745"},{"id":26101,"name":"Ottawa City Hall","street":"110 Laurier West","city":"Ottawa","state":"Ontario","accessible":true,"unisex":true,"directions":"Downstairs outside of Service Ontario","comment":"","latitude":45.421458,"longitude":-75.691738,"created_at":"2016-11-08T18:51:23.089Z","updated_at":"2016-11-08T18:51:23.089Z","downvote":0,"upvote":1,"country":"CA","changing_table":false,"edit_id":26101,"approved":true,"distance":0.2648990942405799,"bearing":"90.440566678738"},{"id":585,"name":"Carleton University","street":"Carleton University Campus","city":"Ottawa","state":"ON","accessible":false,"unisex":true,"directions":"4th floor unicentre across from the GLBT centre.","comment":"3rd floor Loeb building in tower A ","latitude":45.42178,"longitude":-75.691184,"created_at":"2014-02-02T20:49:49.420Z","updated_at":"2014-02-02T20:49:49.420Z","downvote":1,"upvote":1,"country":"CA","changing_table":false,"edit_id":585,"approved":true,"distance":0.2923896786264606,"bearing":"87.335231153182"},{"id":24324,"name":"Venus Envy Ottawa","street":"226 Bank St.","city":"Ottawa","state":"Ontario","accessible":true,"unisex":true,"directions":"Wheelchair accessible store (push activated door). Straight to back of the shop, last door on the right. Menstrual products under the sink.","comment":"This is an education-based sex shop that serves many communities, including trans, Two-Spirit, and gender diverse people. It is open to all ages.","latitude":45.4168931,"longitude":-75.6978506,"created_at":"2016-07-28T15:47:39.508Z","updated_at":"2016-07-28T15:47:39.508Z","downvote":0,"upvote":1,"country":"CA","changing_table":false,"edit_id":24324,"approved":true,"distance":0.3198660573320395,"bearing":"188.038321665264"}]
curl --location --request GET 'https://zylalabs.com/api/5607/canada+restrooms+api/7285/restrooms+by+coordinates?page=Required&lat=Required&lng=Required' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API, users must indicate a page, number of results to receive, coordinates or locations.
The Canada Restrooms API provides detailed information on public restrooms, including location, accessibility, features, and user feedback, for enhanced user convenience.
There are different plans to suit all tastes, including a free trial for a small number of requests, but your rate is limited to avoid abuse of the service.
The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.
Canada Restrooms API helps integrate location-based restroom data into apps, improving accessibility, convenience, and user experience for finding nearby facilities.
This endpoint returns detailed information about public restrooms, including their name, address, accessibility features, unisex status, geographic coordinates, user ratings, and distance from the specified coordinates.
Key fields in the response include "id," "name," "street," "city," "state," "accessible," "unisex," "latitude," "longitude," "distance," and user feedback metrics like "upvote" and "downvote."
The response data is structured as an array of JSON objects, each representing a restroom. Each object contains fields for location details, accessibility features, and user ratings, making it easy to parse and utilize in applications.
Users can specify parameters such as "page" for pagination, "unisex" to filter results for unisex restrooms, and geographic coordinates (latitude and longitude) to define the search area.
Users can customize requests by adjusting the "page" parameter for pagination and using the "unisex" parameter to filter results based on restroom type, allowing for tailored searches based on user needs.
The data is sourced from user contributions, public records, and verified databases, ensuring a comprehensive and up-to-date collection of restroom information across Canada.
Data accuracy is maintained through regular updates, user feedback mechanisms, and validation processes that ensure the information reflects current restroom conditions and features.
Typical use cases include integrating restroom location data into navigation apps, enhancing tourism services, and improving accessibility for individuals with disabilities, ensuring users can find suitable facilities easily.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
11,893ms
Service Level:
100%
Response Time:
3,521ms
Service Level:
100%
Response Time:
11,295ms
Service Level:
100%
Response Time:
3,035ms
Service Level:
100%
Response Time:
4,589ms
Service Level:
100%
Response Time:
1,949ms
Service Level:
100%
Response Time:
604ms
Service Level:
100%
Response Time:
60ms
Service Level:
100%
Response Time:
676ms
Service Level:
100%
Response Time:
6,267ms
Service Level:
100%
Response Time:
36ms
Service Level:
100%
Response Time:
349ms
Service Level:
100%
Response Time:
19ms
Service Level:
100%
Response Time:
236ms
Service Level:
100%
Response Time:
90ms
Service Level:
100%
Response Time:
3,360ms
Service Level:
100%
Response Time:
202ms
Service Level:
100%
Response Time:
50ms
Service Level:
100%
Response Time:
165ms
Service Level:
100%
Response Time:
1,458ms