SR stateless-router

Experiment 02 / page-backed RPC

Coordinates in.
Renderable JSON out.

This page is both a request console and a client-side service. It accepts probe coordinates, range-reads nearby Protomaps tiles, and returns matched probes plus explicit edge and endpoint-node geometry.

Request

MapMatchRequest

Ready. Nothing leaves the browser except PMTiles byte-range reads.

Response

stateless-router/map-match/v1

{
  "status": "waiting_for_request"
}
01

Page-backed endpoint

The map demo loads this page in a hidden iframe and exchanges typed request, progress, response, and error messages with postMessage.

02

Renderable contract

render.edges, render.inferredEdges, and render.matches are GeoJSON FeatureCollections. Direct matches and geometry-inferred connectors remain separate.

03

Honest topology

Endpoint nodes are marked synthetic. Inferred connectors use a temporary geometry graph and never claim turn-restriction or authoritative intersection topology.