Estimate survey travel using address distances and route optimization.
Python
Selenium
OR-Tools
Folium
Role
Built area grouping, pairwise distances, missing-distance estimates and TSP workflows, turning sample addresses into inputs for travel and budget planning.
Results and status
Produced per-area total and average distances, sample orders and route maps for survey planning.
Record period
2020 internship implementation records
Context and objectives
Survey dispersion affects travel and budgets, requiring computable distances and representative routes.
Validate the estimates against actual trips. (Enlarge image)
System architecture and workflow
Architecture overview
Inputs
Sample addresses and interviewer assignments; lists and real coordinates are not displayed publicly.
Process
Group by survey area, build pairwise matrices, retain missing-value rules and solve TSP separately per area.
Outputs
Total and average distance, visit sequence and route maps for survey planning.
Workflow diagram
View the detailed workflowNo real addresses are shown; the historical coefficient was not validated against actual road distance. (Enlarge image)
Key design decisions
Constrain routes to each interviewer's real assignment
ChallengeSample addresses are dispersed. One shortest route across all areas may not reflect real work assignments.
Approach and tradeoffsDefined areas by district and interviewer ID, merged coordinates, built per-area distance matrices and used a route solver to produce visit sequences.
ResultProduced total and average distances, sample sequences and maps per survey area for planning.
Keep planning possible when route distances are missing
ChallengeWalking distances can be missing for many address pairs. Straight-line substitutes alone underestimate travel.
Approach and tradeoffsRetained straight-line baselines and estimated missing routes at 1.5 times that distance, storing retrieval results and completing both directions and self-distances for a usable matrix.
ResultKept planning from stopping at missing values. The coefficient was a historical rule, not a validated road-distance calibration.
Results and validation scope
Deliverables
Produced per-area total and average distances, sample orders and route maps for survey planning.
Validation and limits
Missing routes use the historical estimation rule. Outputs support route and budget planning; actual travel requires calibration.