All one hundred eight build stories
Saifullah Ahad / Build Story
Why a route planner avoid motorways setting needs a fork check
Turning on a route planner avoid motorways option keeps expressways out of your intended line, yet one wrong turn beside a slip road can put your vehicle onto fast traffic before a navigator can recalculate.
- Mistake branch
- At least 300 m past a junction
- Recovery limits
- 0.5, 1.0, 2.0, or 5.0 km added
- Road exclusions
- Motorways out, tunnels kept
Why avoiding motorways fails one turn away from the ramp
Many people stay off motorways because they ride small bikes, accompany a learner driver, or simply prefer slower neighborhood streets. In Great Britain, the official guidance on The Highway Code: Motorways (rules 253 to 273) spells out who must stay off those carriageways, including pedestrians, cyclists, slow-moving vehicles, and riders on motorcycles under 50 cc, and adds:
"Provisional car licence holders MUST NOT drive on the motorway unless they are accompanied by a DVSA Approved Driving Instructor (ADI) and are driving a car displaying red L plates (or D plates in Wales) with dual controls."
GOV.UK, The Highway Code, Rule 253 (updated October 22, 2025)
Even for licensed drivers who prefer local avenues, motorway traffic leaves less room for hesitation. The same government manual states in Rule 254: "Traffic on motorways usually travels faster than on other roads, so you have less time to react."
The catch with an ordinary route planner no motorways setting is that it assumes you follow every turn cleanly. Once you cross onto a controlled-access ramp by mistake, road design and traffic law block a quick turnaround. As the UK Highway Code instructs in Rule 263: "If you have missed your exit, or have taken the wrong route, carry on to the next exit." Reversing on slip roads or crossing a central barrier is illegal and dangerous.
Highway engineering rules explain why local streets behave differently from controlled-access expressways. In Highway Functional Classification Concepts, Criteria and Procedures, Section 3, the U.S. Federal Highway Administration (FHWA) notes that Interstates and similar divided highways eliminate regular crossroads: "Access to these roadways is controlled or limited to maximize mobility by eliminating conflicts with driveways and at-grade intersections that would otherwise hinder travel speed." It adds: "Access to these roadways is limited to a set of controlled locations at entrance and exit ramps."
"Unlike their access-controlled counterparts, abutting land uses can be served directly. Forms of access for Other Principal Arterial roadways include driveways to specific parcels and at-grade intersections with other roadways."
U.S. Federal Highway Administration, Highway Functional Classification, Section 3 (updated June 28, 2017)
Because surface arterials and local streets meet at regular intersections, missing a turn there usually leaves a side block where you can circle back without entering a ramp. Checking those forks ahead of time is the step that ordinary routing omits.
How to plan route avoiding motorways by auditing forks first
Before you rely on any navigation screen, you can check a sensitive trip on paper or on a street map in four deliberate steps.
- Trace the main line without motorways Pick a start-to-finish route using surface streets, arterials, and collectors only, noting its total distance as your baseline.
- Mark every decision junction near a fast road Scan the route for interchanges, frontage forks, and roundabout exits where one wrong lane or early branch points onto a motorway ramp.
- Follow each wrong turn for 300 meters Imagine missing the intended turn and driving at least 300 meters along the wrong branch before realizing the mistake and looking for a way back.
- Check the detour back against your limit If a wrong branch lands on a motorway, reject that main route. Otherwise, measure the shortest legal non-motorway return from the next intersection and compare the extra distance with a limit you can tolerate.
Worked example: comparing two non-motorway paths
To make the arithmetic concrete without citing a real drive, suppose your direct non-motorway route from start to finish measures 8.0 km. Allow up to one-quarter extra distance for the planned trip, which sets a 10.0 km ceiling on the outward route. At a fork 3.0 km into Route A, staying on course leaves 5.0 km to go, while taking the left branch by mistake enters a motorway ramp within 300 meters. Route B loops one block earlier, totals 9.2 km (inside the 10.0 km planned ceiling), and leaves 6.2 km from its decision junction. Missing the turn there goes 0.4 km to the next multi-way intersection, where the shortest surface street path back measures 6.9 km, adding 1.1 km over the 6.2 km remaining baseline (0.4 plus 6.9, minus 6.2, equals 1.1 km).
| Option | Planned path | Wrong branch check | Result by recovery limit |
|---|---|---|---|
| Route A | 8.0 km direct | Enters motorway ramp within 300 m | Fails at any limit |
| Route B (tight) | 9.2 km (+1.2 km) | 0.4 km wrong + 6.9 km back (+1.1 km) | Fails at 0.5 km or 1.0 km |
| Route B (wide) | 9.2 km (+1.2 km) | 0.4 km wrong + 6.9 km back (+1.1 km) | Passes at 2.0 km or 5.0 km |
How Dehweles checks missed turns on a Dhaka map
I built Dehweles: Route Recovery as a pre-trip Android route checker that automates this fork audit on road graph data. Instead of guiding you while moving, it evaluates every decision junction along candidate routes before you start driving.
On first launch with no map installed, the main screen prompts you to download the Dhaka City Central map pack from Packs (shown as 20.8 MB in Regional Map Packs and 22 MB on the initial prompt button, for the 21,771,432-byte pack built from OpenStreetMap data via the Overture Maps Foundation). The app checks the SHA-256 hash when downloading and then runs route calculations locally on your phone without further network calls.
Once the Dhaka pack is installed, tapping two points on the map snaps each pick to the nearest junction where a car route can start or finish, displaying endpoints as latitude and longitude coordinates. The Route Comparison drawer then puts the Direct Shortest Route alongside the checked route and reports the worst extra recovery distance found across all checked junctions.
Behind the map view, the routing engine applies fixed rules inside the downloaded Dhaka graph:
- Motorways excluded throughout: Roads marked as motorways, explicit motor-only segments, and connector links that lead only onto motorways are excluded from both the planned route and every recovery check. Tunnels remain allowed.
- Recovery and detour limits: Under Settings, you pick a Recovery Distance Limit of 0.5 km (Strict), 1.0 km, 2.0 km, or 5.0 km (Default), and a Planned Detour Allowance of one-tenth, one-quarter (the default), or one-half longer than the direct non-motorway baseline.
- At least 300 meters per wrong branch: At every junction with multiple car-traversable exits, the checker explores each alternative road for at least 300 meters until reaching either the destination or the next multi-way junction, then looks for a permitted return path within your recovery limit.
- On-device saved plans: Tapping Save Plan stores a checked route encrypted with AES-256-GCM on your phone, and opening an entry from Saved Plans re-runs the check against your installed map pack.
Status chips and junction inspection
Tapping Inspect Junctions steps through each decision point as Junction 1, 2, or 3 on your route and lists how many other roads leave it plus each wrong branch's added recovery distance. Instead of relaxing your rules silently when no route qualifies, the status chip shows one of seven exact outcomes:
- Checked: Every modeled single wrong turn stayed off motorways and stayed within your recovery limit.
- No passing route: A non-motorway route exists, yet every route inside your detour allowance failed at least one recovery or exclusion check.
- No road data here: Part of the route or a checked mistake branch meets an unmapped rule or the boundary of the Dhaka pack.
- No direct route: No permitted road chain connects your picked start and destination in the pack.
- Invalid endpoint: A picked start or finish point sits on a road segment closed to cars or excluded by rules.
- Search limit reached / Search cancelled: Calculation exceeded the 30-second or closure memory cap, or was cancelled by a new tap or Re-Check.
Honest limits and what Dehweles cannot check
Dehweles reports properties of the downloaded Dhaka road graph under one narrow error model. It never guarantees a safe drive, and passing a pre-trip check does not replace watching real road signs and traffic.
- Dhaka only, with coordinate picks: Only the Dhaka City Central pack is available to download in the app. There is no street-name search box, so you pick junctions directly on the map by shape and coordinates.
- No GPS, live traffic, or turn guidance: The app requests internet access solely to download the map pack, asks for zero location, camera, or notification permissions, and gives no spoken or live moving directions.
- Single wrong-turn model only: Two consecutive mistakes, turning around mid-block before 300 meters, temporary construction closures, unmapped restrictions, and missing private-access tags in open map data are outside the calculation.
- Incomplete map clearing on full reset: Tapping Remove in Packs deletes the map pack file, whereas the full delete button in Settings clears the saved database entries and leaves the cached map files on disk until removed individually or app storage is cleared.
What was not checked
- No live road trial in Dhaka traffic: Automated unit checks (30 app tests and 10 routing checks, including 124 frozen cases and independent positive and negative verifiers) and a signed release walk on one Android 10 phone confirmed route resolution, save/relaunch persistence, dark and light themes, and limit updates across three tapped Dhaka pairs, yet no driver tested those routes on real city streets.
- No external road-safety or driving-instructor review: A formal safety review of the 300-meter branch rule and UI wording against driver expectations has not been carried out.
- Limited device and edge-case coverage: Earlier tablet screenshots on an Android 9 tablet noted that the Junction Recovery Inspector dialog clipped its bottom row on a tablet screen, and older Android 7 (API 24) hardware, 2 GB RAM devices, TalkBack navigation, and dropped pack downloads were not tested on physical hardware.