Segments (1122) Delete Previous Page 2 of 23 Next All roads A F None All routes A1 A10 A11 A12 A121 A122 A123 A124 A125 A126 A13 A14 A2 A231 A232 A233 A234 A235 A236 A237 A3 A3-1 A342 A343 A344 A345 A4 A4-1 A4-2 A4-4 A4-5 A4-6 A4-7 A5 A5-1 A6 A7 A8 A8 (1) A9 E1 F100 F101 F101-1 F102 F103 F103-1 F104 F105 F106 F107 F108 F109 F110 F111 F112 F113 F114 F115 F116 F117 F118 F118-1 F119 F120 F121 F122 F123 F124 F124-1 F125 F126 F127 F128 F128-1 F128-2 F128-3 F129 F130 F131 F132 F133 F135 F136 F137 F138 F139 F200 F201 F202 F203 F204 F205 F206 F207 F208 F209 F210 F211 F212 F213 F214 F215 F216 F217 F218 F219 F220 F221 F222 F223 F224 F225 F226 F227 F228 F229 F230 F231 F232 F233 F234 F235 F236 F237 F238 F239 F240 F242 F243 F244 F245 F246 F247 F248 F249 F250 F251 F252 F252-1 F253 F254 F255 F255-1 F256 F257 F258 F259 F260 F261 Select state Abia Adamawa Akwa Ibom Anambra Bauchi Bayelsa Benue Borno Cross River Delta Ebonyi Edo Ekiti FCT Gombe Imo Jigawa Kaduna Kano Katsina Kebbi Kogi Kwara Lagos Nasarawa Niger Ogun Ondo Osun Oyo Plateau Rivers Sokoto Taraba Yobe Zamfara ☰ Route Segment code Name State Start name Northings Eastings End name Northings 2 Eastings 2 Distance(km) ✎ A10 A10NIS04 GIDAN KWANO NIGER - 10.03786 5.94575 - 10.08207 6.17462 26.10 ✎ A11 A11KDS01 TURUNKU KADUNA - 10.68787 7.50399 - 10.74143 7.69407 25.01 ✎ A11 A11KDS02 GADAN GAYA KADUNA - 10.74143 7.69407 - 10.72214 7.88492 25.00 ✎ A11 A11KDS03 BAVA KADUNA - 10.72214 7.88492 - 10.68224 8.06203 25.01 ✎ A11 A11KDS04 KAKALE KADUNA - 10.68224 8.06203 - 10.68088 8.28061 25.15 ✎ A12 A12BES01 MBAAYAN BENUE - 7.16176 9.29326 - 7.19653 9.51358 25.05 ✎ A12 A12BES02 TOMAHAR BENUE - 7.19653 9.51358 - 7.23722 9.73248 25.03 ✎ A12 A12BES03 IKOYAYAR BENUE - 7.23722 9.73248 - 7.24826 9.82619 10.62 ✎ A12 A12TAS04 TAKUM TARABA - 7.24826 9.82619 - 7.25648 10.04328 25.05 ✎ A12 A12TAS05 TATI TARABA - 7.25648 10.04328 - 7.28640 10.16870 14.32 ✎ A12 A12TAS06 NYITA TARABA - 7.28640 10.16870 - 7.51261 10.36535 35.87 ✎ A12 A12TAS07 GANKOI IDO TARABA - 7.51261 10.36535 - 7.69156 10.46894 24.93 ✎ A12 A12TAS08 GOBIRI TIV TARABA - 7.69156 10.46894 - 7.85676 10.61996 25.10 ✎ A12 A12TAS09 KUGANA BAGONI TARABA - 7.85676 10.61996 - 7.87012 10.81503 24.97 ✎ A12 A12TAS10 DOGARA TIV TARABA - 7.87012 10.81503 - 7.91574 10.98964 25.04 ✎ A12 A12TAS11 NAHUTA TARABA - 7.91574 10.98964 - 8.12346 10.98513 25.00 ✎ A12 A12TAS12 KADIRI TARABA - 8.12346 10.98513 - 8.31325 11.05071 25.01 ✎ A12 A12TAS13 GARBE SHEGE TARABA - 8.31325 11.05071 - 8.22812 11.04011 10.81 ✎ A12 A12TAS14 SANBERU TARABA - 8.22812 11.04011 - 8.65069 11.24955 60.04 ✎ A12 A12TAS15 JAURO SHOMWA TARABA - 8.65069 11.24955 - 8.90959 11.31567 31.00 ✎ A121 A121OGS01 SAGAMU OGUN - 6.88311 3.57834 - 6.85788 3.78412 26.88 ✎ A121 A121OGS02 IJEBU-ODE OGUN - 6.85788 3.78412 - 6.78518 3.99009 24.95 ✎ A121 A121OGS03 IJEBU-ITELE OGUN - 6.78518 3.99009 - 6.76098 4.20723 24.80 ✎ A121 A121OGS04 AIYE OGUN - 6.76098 4.20723 - 6.72847 4.40379 33.65 ✎ A121 A121ODS05 KAJOLA ONDO - 6.72847 4.40379 - 6.72722 4.65196 46.21 ✎ A121 A121ODS06 OMOTOSO ONDO - 6.72722 4.65196 - 6.76147 4.86517 25.55 ✎ A121 A121ODS07 ORE ONDO - 6.76147 4.86517 - 6.74812 5.15416 34.50 ✎ A121 A121EDS08 UGBOGUI EDO - 6.74812 5.15416 - 6.66575 5.27445 16.16 ✎ A121 A121EDS09 OKOKPON EDO - 6.66575 5.27445 - 6.56743 5.47670 24.96 ✎ A121 A121EDS10 BENIN 1 EDO - 6.56743 5.47670 - 6.40227 5.60821 25.01 ✎ A121 A121EDS11 BENIN 2 EDO - 6.40227 5.60821 - 6.34222 5.63499 8.17 ✎ A122 A122OYS01 IBADAN OYO - 7.40312 3.94380 - 7.35584 4.13711 24.85 ✎ A122 A122OSS02 GBONGAN OSUN - 7.35584 4.13711 - 7.46772 4.34137 27.36 ✎ A122 A122OSS03 IPETUMODU OSUN - 7.46772 4.34137 - 7.56745 4.53586 24.97 ✎ A122 A122OSS04 ILESA OSUN - 7.56745 4.53586 - 7.59144 4.75164 25.01 ✎ A122 A122OSS05 ERIN OKE OSUN - 7.59144 4.75164 - 7.51146 4.89017 24.99 ✎ A122 A122OSS06 IPETU-IJESA OSUN - 7.51146 4.89017 - 7.40108 5.00459 19.23 ✎ A122 A122ODS07 ILARA-MOKIN ONDO - 7.40108 5.00459 - 7.28564 5.17174 24.98 ✎ A122 A122ODS08 AKURE ONDO - 7.28564 5.17174 - 7.26342 5.39018 25.06 ✎ A122 A122ODS09 OWO ONDO - 7.26342 5.39018 - 7.21955 5.60192 24.93 ✎ A122 A122ODS10 IPELE JN ONDO - 7.21955 5.60192 - 7.02925 5.70028 25.05 ✎ A122 A122ODS11 IFON ONDO - 7.02925 5.70028 - 6.85912 5.77918 21.58 ✎ A122 A122EDS12 OWAM EDO - 6.85912 5.77918 - 6.65966 5.76825 25.05 ✎ A122 A122EDS13 ODIGHI EDO - 6.65966 5.76825 - 6.45336 5.59733 34.98 ✎ A123 A123KWS01 ILORIN KWARA - 8.49718 4.54943 - 8.37068 4.71603 25.66 ✎ A123 A123KWS02 AJASE-IPO KWARA - 8.37068 4.71603 - 8.23595 4.87269 24.96 ✎ A123 A123KWS03 OKE ONIGBIN KWARA - 8.23595 4.87269 - 8.17008 5.06287 25.01 ✎ A123 A123KWS04 OMU ARAN KWARA - 8.17008 5.06287 - 8.07054 5.24406 25.09 ✎ A123 A123KWS05 ORA AIYEGBAJU KWARA - 8.07054 5.24406 - 8.15020 5.44050 24.98 ✎ A123 A123KWS06 EGBE KWARA - 8.15020 5.44050 - 8.21568 5.50642 10.36 Features Features and Workflows1) LandingFERMA-branded entry page.Navigation to Inventory, Motorability, Condition, Library, Engineering Admin.2) Road InventoryPrimary use case: route and segment inventory exploration.Main sectionsKPI strip above mapMap/table view sectionRight side cards:Segment summarySegment details with:Segment Identity tableSegment Characteristics tableCurrent behavior highlightsFilters are mutually exclusive in page logic (road OR route OR state).Route row selection loads details via AJAX endpoint:GET /road-inventory/route-details/?route=<route_code>Summary includes:RouteLength (sum of segment distances)Start point/End point derived from first/last segment by index orderingPasses through (Route.details)Number of segmentsStart/End display fallback chain for name:Address FK name -> Segment name -> Segment state -> -Point display format:Name (Lat, Lon) with fixed decimal precision3) Road MotorabilityPrimary use case: evaluate motorability performance and segment status distribution.Main sectionsKPI strip (length/routes/segments/no data)Status KPI strip (Good/Tolerable/Intolerable/Failed)Map/table viewRight side cards:Motorability summarySegments under investigation or repairInvestigation/repair table behaviorOne row per segmentFilter-aware (uses page filter context)Source: Defect records where workflow status is not repair_completeColumns:Segment (segment code)Status (human-readable workflow status)Sort order:Segment index/code ordering4) Road ConditionPrimary use case: operate on sub-segment condition records and create draft defect records.Key endpointsPOST /road-condition/save-draft/GET /road-condition/subsegments/?segment=<code>BehaviorCreates defect drafts only for eligible sub-segments.Prevents duplicate active records per sub-segment.Left-side filter uses Route and Condition instead of State.Speed-vs-distance graph auto-loads the first segment returned by the active filter.If the current filter returns no segments, the page shows No segments found for the selected filter.Segment ordering uses:parent routesegment trailing two-digit suffix (numeric)id tie-breakerSub-segment ordering uses:parent routeparent segment trailing two-digit suffix (numeric)parent segment idsub-segment trailing suffix (numeric)id tie-breaker5) LibrarySections:Road inventoryReportsTechnical guideUser guideNotes:Shared page title behavior implemented as Library across sections.Technical and user guides are rendered via shared guide template logic.Road inventory interactionsSegment rows no longer open the editor directly.A compact edit icon beside each segment checkbox opens the segment edit modal.Clicking a segment row expands it inline as an accordion.Only one segment can stay expanded at a time.Expanded segment rows load sub-segments on demand.Inline sub-segment workspaceExpanded sub-segment tables show:checkboxedit iconsub-segment codestart pointend pointdistanceThe inline sub-segment edit modal currently updates:start pointend pointSub-segment distance remains visible in the table but is read-only in the modal.Selecting sub-segments reveals a local Delete action above the expanded sub-segment table.Confirmed delete removes the selected sub-segments and then renumbers the remaining rows so codes stay contiguous.Data hygiene and constraintsSegment codes are standardized to end in two digits.Segment code max length is now 16 characters.Shared list ordering ignores the middle portion of the code and prioritizes route plus the final two-digit suffix.Duplicate sub-segment imports are collapsed during upload so repeated coordinate/data rows are not created.Sub-segment position ceiling is now 35, with duplicate-cleanup and renumbering support in the migration path.6) Engineering AdminWorkflow tabs/pages:Root Cause AnalysisPhysical InspectionSolution DesignApprovalsOverview/History variantsWorkflow progression (conceptual)draft -> rca -> physical_inspection -> solution_design -> approved/rejected -> repair_ongoing -> repair_completeRecent UI updatePriority controls/labels removed from Approvals and engineering-admin summary tables.Top navigation is fixed site-wide.Library and Engineering left navigation panes are fixed on desktop and scroll independently from the main content area.7) Data import/sync utilitiesRoute details sync commandCommand: python manage.py sync_route_detailsReads route lines from template source and updates Route.details.Supports dry run and apply mode.Segment refresh services/tasksQueue refresh endpoint and Celery task for updating distances/speeds/status from Google API. Uploads Download template Select file (.xls, .xlsx, .csv) Begin Upload Uploading, please wait... Upload summary Download error CSV
Features and Workflows1) LandingFERMA-branded entry page.Navigation to Inventory, Motorability, Condition, Library, Engineering Admin.2) Road InventoryPrimary use case: route and segment inventory exploration.Main sectionsKPI strip above mapMap/table view sectionRight side cards:Segment summarySegment details with:Segment Identity tableSegment Characteristics tableCurrent behavior highlightsFilters are mutually exclusive in page logic (road OR route OR state).Route row selection loads details via AJAX endpoint:GET /road-inventory/route-details/?route=<route_code>Summary includes:RouteLength (sum of segment distances)Start point/End point derived from first/last segment by index orderingPasses through (Route.details)Number of segmentsStart/End display fallback chain for name:Address FK name -> Segment name -> Segment state -> -Point display format:Name (Lat, Lon) with fixed decimal precision3) Road MotorabilityPrimary use case: evaluate motorability performance and segment status distribution.Main sectionsKPI strip (length/routes/segments/no data)Status KPI strip (Good/Tolerable/Intolerable/Failed)Map/table viewRight side cards:Motorability summarySegments under investigation or repairInvestigation/repair table behaviorOne row per segmentFilter-aware (uses page filter context)Source: Defect records where workflow status is not repair_completeColumns:Segment (segment code)Status (human-readable workflow status)Sort order:Segment index/code ordering4) Road ConditionPrimary use case: operate on sub-segment condition records and create draft defect records.Key endpointsPOST /road-condition/save-draft/GET /road-condition/subsegments/?segment=<code>BehaviorCreates defect drafts only for eligible sub-segments.Prevents duplicate active records per sub-segment.Left-side filter uses Route and Condition instead of State.Speed-vs-distance graph auto-loads the first segment returned by the active filter.If the current filter returns no segments, the page shows No segments found for the selected filter.Segment ordering uses:parent routesegment trailing two-digit suffix (numeric)id tie-breakerSub-segment ordering uses:parent routeparent segment trailing two-digit suffix (numeric)parent segment idsub-segment trailing suffix (numeric)id tie-breaker5) LibrarySections:Road inventoryReportsTechnical guideUser guideNotes:Shared page title behavior implemented as Library across sections.Technical and user guides are rendered via shared guide template logic.Road inventory interactionsSegment rows no longer open the editor directly.A compact edit icon beside each segment checkbox opens the segment edit modal.Clicking a segment row expands it inline as an accordion.Only one segment can stay expanded at a time.Expanded segment rows load sub-segments on demand.Inline sub-segment workspaceExpanded sub-segment tables show:checkboxedit iconsub-segment codestart pointend pointdistanceThe inline sub-segment edit modal currently updates:start pointend pointSub-segment distance remains visible in the table but is read-only in the modal.Selecting sub-segments reveals a local Delete action above the expanded sub-segment table.Confirmed delete removes the selected sub-segments and then renumbers the remaining rows so codes stay contiguous.Data hygiene and constraintsSegment codes are standardized to end in two digits.Segment code max length is now 16 characters.Shared list ordering ignores the middle portion of the code and prioritizes route plus the final two-digit suffix.Duplicate sub-segment imports are collapsed during upload so repeated coordinate/data rows are not created.Sub-segment position ceiling is now 35, with duplicate-cleanup and renumbering support in the migration path.6) Engineering AdminWorkflow tabs/pages:Root Cause AnalysisPhysical InspectionSolution DesignApprovalsOverview/History variantsWorkflow progression (conceptual)draft -> rca -> physical_inspection -> solution_design -> approved/rejected -> repair_ongoing -> repair_completeRecent UI updatePriority controls/labels removed from Approvals and engineering-admin summary tables.Top navigation is fixed site-wide.Library and Engineering left navigation panes are fixed on desktop and scroll independently from the main content area.7) Data import/sync utilitiesRoute details sync commandCommand: python manage.py sync_route_detailsReads route lines from template source and updates Route.details.Supports dry run and apply mode.Segment refresh services/tasksQueue refresh endpoint and Celery task for updating distances/speeds/status from Google API.