WayFy’s Accessibility API is the heart of the platform’s community-powered accessibility data. Each place on the map has at most one canonicalDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jhonyes04/new-wayfy/llms.txt
Use this file to discover all available pages before exploring further.
AccessibilityReview record — holding wheelchair status, facility flags (ramps, elevators, accessible toilets, parking, automatic doors), and a free-text description. Community members can also upload photos (up to 5 per review) to give other travellers a realistic view of what to expect. The wheelchair-map endpoint provides a lightweight snapshot of all reviewed places, powering the WayFy map’s accessibility overlay.
Review creation and photo uploads require JWT authentication. All read endpoints are publicly accessible without a token.
Map Data
GET /api/accessibility/wheelchair-map
Returns a flat dictionary mapping every reviewed place’sosm_id to its wheelchair value. This lightweight endpoint is designed to be called on map load to colour-code accessibility status across thousands of pins in a single request.
Authentication: None
Response
A flat JSON object where each key is anosm_id and the value is the wheelchair status string.
Key is the place’s OSM identifier. Value is one of
yes, limited, or no. Only places with a non-null wheelchair value are included.Example
Reviews
GET /api/accessibility/:osm_id
Returns accessibility data for a single place. Each OSM place has at most one canonical review record (enforced by a unique constraint onosm_id). The response includes aggregated counts alongside the review array for backwards-compatible display.
Authentication: None
Response
The OpenStreetMap identifier for the place.
Number of review records found (0 or 1, given the unique constraint).
The wheelchair value of the single review, or
null if no review exists.Array containing the single review object, or empty if none exists.
Example
GET /api/accessibility/:osm_id/review
Returns the single review record for a place by itsosm_id. Returns 404 Not Found if no review exists yet.
Authentication: None
Unlike
GET /api/accessibility/:osm_id, this endpoint returns only the review record itself without aggregation stats. Use it when you need the raw review object for editing or display purposes.Response
Review record ID.
OSM identifier.
OSM element type.
Place name.
Wheelchair value:
yes, limited, or no.Ramp present.
Elevator available.
Accessible toilet available.
Accessible parking available.
Automatic door present.
Free-text accessibility notes.
User ID of the last contributor.
Full name of the last contributor, or
null.Creation timestamp.
Last-updated timestamp.
Array of photo objects attached to this review.
Example
POST /api/accessibility/:osm_id
Creates or updates (upserts) the accessibility review for a place. Each OSM place has at most one canonical review — submitting this endpoint either creates a new review or overwrites the existing one. Thelast_modified_by_id is always updated to the current user.
Authentication: Required
Request
Wheelchair accessibility level. Must be one of
yes, limited, or no.true if the entrance has a ramp or ramped alternative.true if an elevator is available within or at the entrance.true if accessible toilet facilities (e.g. grab bars, turning space) are present.true if designated accessible parking spaces exist nearby.true if the main entrance has an automatic or power-assisted door.Free-text notes describing the accessibility situation — e.g. which entrance to use, surface type, or seasonal constraints.
Human-readable name of the place. Used if a review record is being created for the first time.
OSM element type:
node, way, or relation. Defaults to node on first creation.Response
Returns200 OK with the full review object after upsert.
Review record ID.
OSM identifier confirmed.
OSM element type.
Place name.
Saved wheelchair value.
Ramp flag.
Elevator flag.
Accessible toilet flag.
Accessible parking flag.
Automatic door flag.
Saved description.
User ID of the contributor.
Full name of the contributor, or
null.Creation timestamp.
Timestamp of the upsert.
Array of photo objects attached to this review.
Example
Photos
POST /api/accessibility/:review_id/photos
Uploads one or more photos to an existing accessibility review. Photos help future visitors understand the physical environment — entrance layouts, ramp inclines, signage, and facilities. Up to 5 photos may be attached per review. Authentication: RequiredRequest
One or more image files. Send as
multipart/form-data using the field name photos. Accepted formats: png, jpg, jpeg, webp. You may include multiple photos fields in a single request to upload a batch.Response
Returns201 Created with an array of the newly created photo records directly (not wrapped).