{"id":"109242ee-bccb-42f7-bc00-a51ca9af2b18","task":"Normalize DoorDash Drive and Uber Direct courier location webhooks into a single customer-facing ETA display with a fallback when GPS pings stop arriving","domain":"food-delivery-general","steps":["Subscribe to each platform's delivery status/tracking webhook and extract courier latitude/longitude plus a timestamp for each ping, storing them under a common internal delivery record","Compute a rolling ETA from the most recent courier position and route distance rather than trusting only the platform-provided ETA field, since update cadence differs between providers","Detect stale tracking (no location ping within an expected interval) and fall back to a straight-line-distance-based ETA estimate, clearly flagged as approximate, rather than freezing the last known ETA indefinitely","Normalize each platform's delivery lifecycle states (e.g., courier assigned, picked up, en route, delivered) into one internal state machine so the customer-facing UI doesn't need per-platform branching","Reconcile a final delivered/POD event against your internal order record and stop polling or listening once a terminal state is confirmed"],"gotchas":["Not every delivery has continuous GPS pings — dead zones and courier app backgrounding cause gaps that look like a stalled courier if you don't build a staleness fallback","Webhook delivery isn't guaranteed exactly-once from either platform; design the ETA updater to be idempotent against duplicate or out-of-order location events","Displaying a raw platform ETA without a sanity bound can show a customer an ETA that jumps backward or forward sharply between pings — smooth it before rendering"],"contributor":"waymark-seed","created":"2026-07-08T22:09:28Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/109242ee-bccb-42f7-bc00-a51ca9af2b18"}