Segments (1122) Delete Previous Page 5 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) ✎ A2 A2KDS29 DUTSI KADUNA - 10.12105 7.35896 - 10.33259 7.39178 24.99 ✎ A2 A2KDS30 KADUNA KADUNA - 10.33259 7.39178 - 10.54422 7.41097 24.82 ✎ A2 A2KDS31 KADUNA KADUNA - 10.54422 7.41097 - 10.72405 7.51143 26.51 ✎ A2 A2KDS32 JAJI KADUNA - 10.72405 7.51143 - 10.88711 7.64044 25.06 ✎ A2 A2KDS33 ZARIA KADUNA - 10.88711 7.64044 - 11.09646 7.68956 24.91 ✎ A2 A2KDS34 ZABIN ZARIA KADUNA - 11.09646 7.68956 - 11.25473 7.83079 24.96 ✎ A2 A2KDS35 RUMA KADUNA - 11.25473 7.83079 - 11.36401 8.00988 25.00 ✎ A2 A2KDS36 BARAU KADUNA - 11.36401 8.00988 - 11.42024 8.14330 16.56 ✎ A2 A2SKN37 GWAMAI KANO - 11.42024 8.14330 - 11.60132 8.36878 32.78 ✎ A2 A2SKN38 GWALERI KANO - 11.60132 8.36878 - 11.73586 8.42305 17.20 ✎ A2 A2SKN39 KARFI 1 KANO - 11.73586 8.42305 - 11.90198 8.54261 25.00 ✎ A2 A2SKN40 KANO KANO - 11.90198 8.54261 - 12.07121 8.46147 24.99 ✎ A2 A2SKN41 KWIDAWA KANO - 12.07121 8.46147 - 12.26974 8.52897 25.02 ✎ A2 A2SKN42 DAMBATA KANO - 12.26974 8.52897 - 12.48923 8.50093 25.00 ✎ A2 A2SKN43 YANZAKI KANO - 12.48923 8.50093 - 12.58829 8.46164 12.49 ✎ A2 A2JIS44 KAZAURE JIGAWA - 12.58829 8.46164 - 12.82592 8.39847 29.57 ✎ A2 A2KTS45 SANDAMU KATSINA - 12.82592 8.39847 - 13.02946 8.31837 24.95 ✎ A2 A2KTS46 DAURA KATSINA - 13.02946 8.31837 - 13.17415 8.28702 16.67 ✎ A231 A231DES01 WARRI DELTA - 5.57219 5.78384 - 5.52068 5.96185 24.90 ✎ A231 A231DES02 UGHELI DELTA - 5.52068 5.96185 - 5.34426 6.06454 29.88 ✎ A231 A231DES03 EGBO-UWHERU DELTA - 5.34426 6.06454 - 5.22408 6.19673 40.27 ✎ A231 A231BAS04 PATANI BAYELSA - 5.22408 6.19673 - 5.11268 6.37101 25.10 ✎ A231 A231BAS05 KAIAMA BAYELSA - 5.11268 6.37101 - 5.06678 6.44348 9.62 ✎ A231 A231RIS06 RISB RIVERS - 5.06678 6.44348 - 5.06321 6.65964 25.00 ✎ A231 A231RIS07 AHOADA RIVERS - 5.06321 6.65964 - 5.06197 6.84601 25.03 ✎ A231 A231RIS08 ELELE RIVERS - 5.06197 6.84601 - 4.95799 7.00579 25.07 ✎ A231 A231RIS09 IGWURITA RIVERS - 4.95799 7.00579 - 4.78569 7.00487 23.18 ✎ A232 A232EDS01 IGUOMO EDO - 6.35026 5.65854 - 6.30642 5.87513 25.03 ✎ A232 A232EDS02 AKUGBE EDO - 6.30642 5.87513 - 6.27938 6.07722 23.09 ✎ A232 A232DES03 AGBOR DELTA - 6.27938 6.07722 - 6.27384 6.30008 25.00 ✎ A232 A232DES04 IGBODO DELTA - 6.27384 6.30008 - 6.28042 6.51201 24.99 ✎ A232 A232EDS05 ABO DELTA - 6.28042 6.51201 - 6.19282 6.71734 25.02 ✎ A232 A232DES06 ASABA DELTA - 6.19282 6.71734 - 6.13479 6.75790 8.94 ✎ A232 A232ANS07 ONITSHA ANAMBRA - 6.13479 6.75790 - 6.24825 6.93263 25.03 ✎ A232 A232ANS08 AWKA ANAMBRA - 6.24825 6.93263 - 6.25607 7.14710 27.69 ✎ A232 A232ENS09 OJINATO ENUGU - 6.25607 7.14710 - 6.33650 7.33781 24.99 ✎ A232 A232ENS10 OGWUOSIE ENUGU - 6.33650 7.33781 - 6.42556 7.41257 13.18 ✎ A233 A233KOS02 LOKOJA 2 KOGI - 7.84272 6.74588 - 7.73672 6.74920 28.95 ✎ A233 A233KOS03 ELULI KOGI - 7.72061 6.76015 - 7.66994 6.92296 24.96 ✎ A233 A233KOS04 DEKINA KOGI - 7.66994 6.92296 - 7.61821 7.09307 25.08 ✎ A233 A233KOS05 AGBENEMA KOGI - 7.61821 7.09307 - 7.48094 7.20648 24.92 ✎ A233 A233KOS06 LAFIA KOGI - 7.48094 7.20648 - 7.43791 7.41016 24.99 ✎ A233 A233KOS07 IKEBE KOGI - 7.43791 7.41016 - 7.40243 7.61407 24.97 ✎ A233 A233KOS08 AGBACHI KOGI - 7.40243 7.61407 - 7.20374 7.59272 24.99 ✎ A233 A233KOS09 OFFA KOGI - 7.20374 7.59272 - 7.15236 7.67053 11.88 ✎ A233 A233SBE10 OTUKPA BENUE - 7.15236 7.67053 - 7.13948 7.66899 1.47 ✎ A234 A234FCS01 KAGINI FCT - 9.08951 7.21799 - 9.11822 7.42134 24.98 ✎ A234 A234FCS02 NYANYA FCT - 9.11822 7.42134 - 9.03034 7.59041 26.15 ✎ A234 A234NAS03 MASAKA NASARAWA - 9.03034 7.59041 - 8.89470 7.72861 24.95 ✎ A234 A234NAS04 KEFFI NASARAWA - 8.89470 7.72861 - 8.83441 7.93966 25.03 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.