Geoencoding in Elixir
summary
Built a routing system in a five‑month build and launched it live; address geocoding runs as Oban workers called from an Ecto.Multi (about a dozen DB steps) and uses a thin geocoder library. OpenStreetMap/Nominatim gave 83% success on ~11,000 addresses so the system switches to Google Maps for 100% results. Maps use Leaflet + Leaflet Routing Machine with chunked waypoints to batch 25 waypoints per routing call, LiveView push_event + PHX hooks for front/back interop, Phoenix PubSub for live updates, and a FlutterFlow mobile app. Payment validation (Authorize.net) runs synchronously so bad cards never persist.
AI-written summary · about
chapters (14)
- 0:00Introduction and background
- 3:21Eliminating impostor syndrome
- 7:14Engineering method explained
- 10:02Geocoding problem and solution
- 14:14Backgrounding API calls
- 15:41Breaking engineering rules
- 16:24Drawing map markers with Leaflet
- 19:57Updating map routes dynamically
- 21:43Drag-and-drop sorting with LiveView
- 23:09Routing lines with Leaflet Routing Machine
- 25:18Mission Control live updates
- 27:46Mobile app architecture mistake
- 29:34Simple solutions over PubSub
- 30:36QA and launch success
