🌍 Public
Viewing a saved revision (read-only)
e3d0aabe4b4e44ed8c4e0b4b17c8e778
Some refactored API live coding
This example demonstrates a live-coded workflow for inspecting and cleaning data from the Dutch government’s open-data API for road traffic information, accessed via the `fetch` API. It fetches JSON from the RDW endpoint, extracts values from a specified column (`areaid`), and then logs unique values and filters entries containing “WEST” using standard JavaScript array methods. The code shows a step-by-step refactoring process, with console output at each stage, but does not render a visualization. It uses no external libraries, relying solely on native JavaScript functions like `Set` for deduplication.
AI-generated descriptionA livecoded example on an API
- Refactor code
- Inspect data
- Get unique values for a certain column