TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/samgutentag/bcycle-map/llms.txt
Use this file to discover all available pages before exploring further.
/systems endpoint returns the complete list of registered BCycle networks and automatically identifies the system geographically closest to the requester. The worker uses Cloudflare’s cf.latitude / cf.longitude request properties to compute proximity server-side — no browser geolocation permission is needed.
This endpoint powers the NetworkPicker component in the map header. The dropdown only renders when two or more systems are active in the index.
Endpoint
Parameters
None. This endpoint takes no path or query parameters.Response
Returns{ systems, nearestId } with Cache-Control: max-age=300.
Complete list of system entries read from
gbfs/systems-index.json in R2.The
systemId of the geographically closest system to the requester, computed using an equirectangular approximation from Cloudflare’s inferred request coordinates. Returns null when:- Cloudflare did not provide latitude/longitude for the request (e.g., local development or a VPN exit that yields no location), or
- The
systemsarray is empty.
Example request
Example response
The proximity calculation uses a cheap equirectangular approximation (good enough for cities hundreds of kilometres apart). It reads
cf.latitude / cf.longitude from the incoming Cloudflare request object — no separate geolocation API call is made. If location inference is unavailable (local dev, Wrangler, some VPN configurations), nearestId will be null.