nspiration A sidewalk that looks fine to most people can be impassable for someone in a wheelchair. A missing curb cut, a driveway apron that tilts too far, or an intersection on a hillside can turn a short trip into a long detour, or a fall. Cities usually find these problems through slow manual audits or complaints after the fact. We wanted to know whether open 3D map data could find them before anyone rolls into one. We picked Cupertino, California because it mixes flat suburban grids with steeper streets in the foothills.

What it does Cupertino Access Scanner builds a 1:1 scale 3D model of Cupertino, casts a grid of downward rays onto the ground, and flags two kinds of hazard from the ADA (Americans with Disabilities Act) standards:

Steep slopes: ground steeper than the 1:12 maximum for a ramp. Sudden drops: a vertical change of more than 2 inches (about 5 cm), which usually means a curb with no cut. Each hazard appears as a translucent red marker on the 3D map, and you can export the results as CSV or GeoJSON for city planners.

How we built it The project grew in three layers:

Unity + Cesium for Unity with Google Photorealistic 3D Tiles. Tiles stream in with physics colliders, and a C# scanner raycasts against them through PhysX. A browser scanner (Three.js) that runs without any API key. It uses AWS Terrarium elevation tiles (zoom 15) and OpenStreetMap imagery, and builds a BVH (three-mesh-bvh) so it can raycast thousands of points quickly. A single-file CesiumJS dashboard with a glass-style interface. It can scan Google 3D Tiles, a Cesium ion LiDAR tileset, or a local .glb mesh. The math A ray hit gives us a surface normal $\mathbf{n} = (n_x, n_y, n_z)$, with $z$ pointing up. The slope angle is

$$ \theta = \arccos\left(\frac{\mathbf{n}\cdot\hat{\mathbf{z}}}{\lVert\mathbf{n}\rVert}\right), \qquad \text{grade} = \tan\theta . $$

The ADA ramp limit is a rise of 1 over a run of 12:

$$ \tan\theta_{\max} = \frac{1}{12} \approx 0.0833 \quad\Rightarrow\quad \theta_{\max} \approx 4.76^\circ . $$

CesiumJS doesn't return normals from a height query, so we build one ourselves. We sample heights at the point and at two neighbours a short distance $d$ away (we used 30 cm), then take a cross product:

$$ \mathbf{a} = (d,,0,,h_x - h_0),\qquad \mathbf{b} = (0,,d,,h_y - h_0),\qquad \mathbf{n} = \mathbf{a}\times\mathbf{b}. $$

A drop is flagged when two neighbouring samples differ by more than the curb threshold:

$$ \lvert h_i - h_j\rvert > 0.0508\ \text{m}\ (2\ \text{in}). $$

The classification rules are pure functions with unit tests, kept separate from the rendering code. That way the ADA logic can be checked without a GPU.

Challenges

Resolution vs. reality. Open elevation tiles are about 3.8 m per sample, and photogrammetry meshes blur edges. A 2-inch curb is simply below the noise floor. On that data a "drop" is usually interpolation noise, so we label it a candidate, not a confirmed hazard. LiDAR as the fix. We added a switch to scan a LiDAR-derived mesh instead. The pipeline: keep only ground points (ASPRS Class 2) in CloudCompare, rebuild a watertight surface with Poisson reconstruction, then upload to Cesium ion for level-of-detail tiling. A solid mesh is also the right model, since a wheelchair rolls on a continuous surface, not a point cloud. Coordinate systems. glTF and Unity are Y-up, while GIS data is Z-up. We added an up-axis toggle. Local meshes also need a WGS84 origin, and NAVD88 heights sit about 32 m above the ellipsoid in Cupertino, so we offset the default. Floating-point precision. GPUs use 32-bit floats, which carry about 7 significant digits. A vertex at a raw UTM coordinate like $x \approx 585{,}000$ m can only be stored to roughly $$ \varepsilon \approx 585{,}000 \times 2^{-23} \approx 0.07\ \text{m}, $$

which is coarser than the curb we're trying to detect. Mesh shaking ("jitter") follows. The scanner now measures the mesh's bounding box on load and warns if the geometry is more than 5 km from its origin or more than 10 km across, which is a clear sign that CloudCompare's Global Shift was skipped.

Keeping the browser responsive. Scanning about 22,000 points on a single thread would freeze the page, so the scan runs a few hundred points per frame. Browser security. Opening the HTML file straight from disk (file:///) blocks tile streaming, so it has to be served from a local web server.

What we learned

Data quality sets the ceiling: no algorithm can find a 5 cm curb in 3.8 m data. Accessibility standards translate neatly into geometry, but turning them into trustworthy results takes careful wording about uncertainty. Precision, axis conventions and vertical datums cause more real-world bugs than the hazard math itself. Turning silent failures into clear, actionable error messages is part of building a good tool. What's next Field-validate flagged spots against real curb cuts in Cupertino. Merge OpenStreetMap kerb=* tags to cross-check detected curbs. Rank routes by accessibility, not just distance.

Built With

Share this project:

Updates

Submission history