Find the nearest public toilets
Use this when the user asks for the nearest public toilet. Send place (text) or lat and lon. When both are missing the answer has status needs_location.
Request
- Base URL: https://wcway.com
- URL: https://wcway.com/api/v1/toilets/nearest
- Auth: none required
Query parameters
Street, station, landmark or town, for example Darmstadt Hauptbahnhof.
ISO 3166-1 alpha-2 code. Narrows the place lookup.
Latitude, WGS84. Send with lon.
Longitude, WGS84. Send with lat.
Drop toilets that are closed now. Toilets with unknown hours stay in the list and show open_now unknown.
Only wheelchair-accessible toilets.
Only toilets with a changing table.
Only toilets known to be free of charge.
Only toilets that need no purchase: public, permissive or scheme access.
Response
Toilets sorted by distance, or a status that asks for a location.
Example response
{
"origin": {
"label": "Luisenplatz, Darmstadt"
},
"results": [
{
"id": "lt_01J9ZQ"
}
],
"attribution": {
"text": "© OpenStreetMap contributors",
"license": "ODbL-1.0"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.