spinspots
v0.1.0Outdoor table-tennis spots near a coordinate, spot details, and playing conditions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find-spots
Find outdoor table-tennis spots near a coordinate. Returns the nearest spots with their distance and a citable url.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude of the search centre |
lng * | number | Longitude of the search centre |
limit | number | Maximum spots to return (default 10, max 50) |
radiusKm | number | Search radius in kilometres (default 5, max 100) |
get-spot
Get one spot with details and nearby spots, by slug (preferred) or raw id.
| Parameter | Type | Description |
|---|---|---|
slugOrId * | string | Spot slug from a leagueofspin.com/spots/{slug} url, or the raw spot id |
playing-conditions
Current outdoor playing conditions (wind, temperature, precipitation) for a location. Wind is the decisive signal for outdoor table tennis.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude |
lng * | number | Longitude |