An unofficial API for the parades commission of Northern Ireland
- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
- Modified fuzzyMatchStreet function to accept an array of street names instead of a single string, enhancing the fuzzy matching capability. - Updated API endpoint from '/parades' to '/upcoming-parades' to better reflect its purpose. - Changed '/parades_by_street_belfast/:street' to '/parades-by-street-belfast/:street' for consistency in route naming. - Adjusted parade parsing logic to extract proposed outward and return routes as arrays of street names, improving data handling. - Updated compatibility date in wrangler.toml to reflect the latest deployment. |
||
| src | ||
| .gitignore | ||
| .prettierrc.json | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| wrangler.toml | ||
Unofficial Parades Commission API
This doesn't do too much at the minute. Here's the routes available:
/upcoming-parades- lists all upcoming parades in the North/parades-by-street-belfast/:street- List all the upcoming parades by street.
There's query params for /parades available as well.
?location- Filter by town or city?start=some_start_date&end=some_end_date- Specify a start or end. This probably doesn't work yet.
For now, parades by street is Belfast only. I didn't want to bother dealing with geo APIs to figure out what city or town a street is in, so it just assumes Belfast.
Some unfortunate details
To search by street name, we need to visit the details page for each parade in Belfast to get the list of streets the parade is on. Not really great, so we're caching this in a Cloudflare KV store.