Segments (1122) Delete Previous Page 17 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) ✎ F206 F206OYS06 IKOYI-ILE OYO - 8.13110 4.24547 - 8.31752 4.20889 25.23 ✎ F206 F206OYS07 ADAFIA OYO - 8.31752 4.20889 - 8.49970 4.21387 24.97 ✎ F206 F206OYS08 IGBETI OYO - 8.49970 4.21387 - 8.70555 4.18582 24.54 ✎ F207 F207ONS01 IFETEDO ONDO - 7.10264 4.82269 - 7.17197 4.71570 14.97 ✎ F207 F207OSS02 - OSUN - 7.17197 4.71570 - 7.22761 4.66148 10.02 ✎ F207 F207OSS03 AIYEPE OLODE OSUN - 7.22761 4.66148 - 7.40416 4.56652 24.99 ✎ F207 F207OSS04 IFE OSUN - 7.40416 4.56652 - 7.49986 4.45289 20.70 ✎ F208 F208ONS01 ILE OLUJI ONDO - 7.12184 4.86555 - 7.33551 4.89272 24.96 ✎ F208 F208OSS02 IPETU OSUN - 7.33551 4.89272 - 7.46292 4.90841 16.48 ✎ F209 F209ONS01 ODE AIYE ONDO - 6.51229 4.75062 - 6.67416 4.83199 25.05 ✎ F209 F209ONS02 ORE ONDO - 6.67416 4.83199 - 6.87244 4.85938 24.99 ✎ F209 F209ONS03 AJUE ONDO - 6.87244 4.85938 - 7.07296 4.83016 24.98 ✎ F209 F209ONS04 MOBOLORUNDURO ONDO - 7.07296 4.83016 - 7.17714 4.99049 25.02 ✎ F209 F209ONS05 OWENA ONDO - 7.17714 4.99049 - 7.25153 5.19023 25.32 ✎ F209 F209ONS06 ILADO ONDO - 7.25153 5.19023 - 7.43450 5.23476 28.67 ✎ F209 F209EKS07 ADO EKITI EKITI - 7.43450 5.23476 - 7.61768 5.22458 21.39 ✎ F209 F209EKS08 IFAKI EKITI EKITI - 7.61768 5.22458 - 7.79898 5.22875 25.02 ✎ F209 F209EKS09 IDO EKITI EKITI - 7.79898 5.22875 - 7.97398 5.13604 25.04 ✎ F209 F209EKS10 - EKITI - 7.97398 5.13604 - 8.04469 5.10203 9.90 ✎ F209 F209KWS11 OMU ARAN KWARA - 8.04469 5.10203 - 8.13612 5.10071 11.74 ✎ F210 F210NGS01 - NIGER Default 9.90653 4.41089 Default 10.03291 4.37416 0.00 ✎ F210 F209NGS02 - NIGER Default 10.03291 4.37416 Default 10.22606 4.28635 0.00 ✎ F210 F209NGS03 - NIGER - 10.22606 4.28635 - 10.42903 4.30118 25.09 ✎ F210 F209NGS04 - NIGER - 10.42903 4.30118 - 10.60464 4.37749 24.95 ✎ F210 F209NGS05 - NIGER - 10.60464 4.37749 - 10.68933 4.54777 25.00 ✎ F210 F209NGS06 - NIGER - 10.68933 4.54777 - 10.71421 4.69497 18.34 ✎ F211 F211NIS01 NDABODZHI NIGER - 9.29228 5.04756 - 9.48879 4.95294 25.02 ✎ F211 F211NIS02 EBAN NIGER - 9.48879 4.95294 - 9.69350 4.88022 24.93 ✎ F211 F211NIS03 YELWA RD NIGER - 9.69350 4.88022 - 9.82839 4.69974 25.08 ✎ F211 F211NIS04 KAINJI DAM NIGER - 9.82839 4.69974 - 9.87575 4.52071 25.02 ✎ F211 F211NIS05 YANGBA NIGER - 9.87575 4.52071 - 9.89942 4.40572 13.71 ✎ F212 F212KES01 SACKA KEBBI - 10.22855 4.62654 - 10.20569 4.64653 3.54 ✎ F212 F212NIS02 - NIGER - 10.20569 4.64653 - 10.22766 4.85467 24.65 ✎ F212 F212KES03 - KEBBI - 10.22766 4.85467 - 10.30009 4.94668 13.69 ✎ F212 F212NIS04 - NIGER - 10.30009 4.94668 - 10.33015 5.00932 7.87 ✎ F212 F212NIS05 IBETO NIGER - 10.33015 5.00932 - 10.49367 5.15394 25.03 ✎ F213 F213S01 CHAKAI SOKOTO - 12.29928 5.06292 - 12.54262 4.93819 31.13 ✎ F214 F214NIS01 MATACHIBU NIGER - 10.40956 5.48661 - 10.61653 5.43908 25.01 ✎ F214 F214NIS02 MASABU NIGER - 10.61653 5.43908 - 10.80880 5.35463 25.02 ✎ F214 F214NIS03 WARARI NIGER - 10.80880 5.35463 - 11.01870 5.29282 25.04 ✎ F214 F214NIS04 MAGAYIYA NIGER - 11.01870 5.29282 - 11.23353 5.27269 25.05 ✎ F214 F214NIS05 - NIGER - 11.23353 5.27269 - 11.32305 5.27436 10.19 ✎ F214 F214KES06 ZURU KEBBI - 11.32305 5.27436 - 11.44701 5.22846 14.82 ✎ F214 F214KES07 DABAN DUTSE KEBBI - 11.44701 5.22846 - 11.62574 5.21314 24.96 ✎ F214 F214KES08 DONKO KEBBI - 11.62574 5.21314 - 11.75201 5.33590 20.10 ✎ F214 F214ZAS09 ZUGU ZAMFARA - 11.75201 5.33590 - 11.98812 5.29602 29.24 ✎ F215 F215ONS01 AGO OKA ONDO - 7.21868 5.60381 - 7.38878 5.72328 25.02 ✎ F215 F215ONS02 IKARE AKOKO ONDO - 7.38878 5.72328 - 7.58654 5.77233 25.00 ✎ F215 F215ONS03 OMUO ONDO - 7.58654 5.77233 - 7.71688 5.73784 16.95 ✎ F215 F215EKS04 - EKITI - 7.71688 5.73784 - 7.80465 5.74676 12.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.