Segments (1122) Delete Previous Page 19 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) ✎ F219 F219KTS08 Mashi KATSINA - 13.01633 7.77580 - 12.97246 7.99481 24.94 ✎ F219 F219KTS09 Kuyawa KATSINA - 12.97246 7.99481 - 12.97404 8.21921 24.95 ✎ F219 F219KTS10 Mazjaji KATSINA - 12.97404 8.21921 - 13.03534 8.31427 12.69 ✎ F220 F220ONS01 IPELE ONDO - 7.12584 5.65536 - 7.25830 5.81361 25.04 ✎ F220 F220ONS02 IDOANI ONDO - 7.25830 5.81361 - 7.43145 5.92359 24.97 ✎ F220 F220ONS03 AUGA ONDO - 7.43145 5.92359 - 7.62997 5.94066 25.08 ✎ F220 F220KOS04 KABBA KOGI - 7.62997 5.94066 - 7.83612 6.07779 28.66 ✎ F221 F221KOS01 IDOYI KOGI - 8.00512 5.98430 - 8.15774 6.09236 24.99 ✎ F221 F221KOS02 GIRO KOGI - 8.15774 6.09236 - 8.26856 6.24297 25.48 ✎ F221 F221KOS03 IKE KOGI - 8.26856 6.24297 - 8.46326 6.25876 24.98 ✎ F221 F221KOS04 AHUJI KOGI - 8.46326 6.25876 - 8.64818 6.19456 24.92 ✎ F221 F221NIS05 SHABAWOSHI NIGER - 8.64818 6.19456 - 8.94449 6.32263 175.02 ✎ F221 F221NIS06 - NIGER - 8.94449 6.32263 - 9.01540 6.33003 8.31 ✎ F222 F222DES01 Agbor DELTA - 6.25763 6.18176 - 6.26690 6.18617 2.56 ✎ F222 F222DES02 - DELTA - 6.26690 6.18617 - 6.26705 6.18599 0.03 ✎ F222 F222DES03 Ewossa DELTA - 6.26705 6.18599 - 6.29454 6.19735 3.31 ✎ F222 F222EDS04 - EDO - 6.29454 6.19735 - 6.46779 6.26392 21.75 ✎ F222 F222EDS05 Ekekhen EDO - 6.46779 6.26392 - 6.65572 6.26789 24.96 ✎ F222 F222EDS06 Uromi EDO - 6.65572 6.26789 - 6.71449 6.34083 10.79 ✎ F223 F223DES01 Ogara DELTA - 5.47952 6.01904 - 5.53556 6.20672 29.31 ✎ F223 F223DES02 Ilu DELTA - 5.53556 6.20672 - 5.67994 6.36828 34.43 ✎ F223 F223DES03 Kwale DELTA - 5.67994 6.36828 - 5.84949 6.47265 25.02 ✎ F223 F223DES04 Ossissa DELTA - 5.84949 6.47265 - 6.04024 6.50679 24.96 ✎ F223 F223DES05 Ogwashi olor DELTA - 6.04024 6.50679 - 6.16815 6.59891 24.96 ✎ F223 F223DES06 Igbuzor DELTA - 6.16815 6.59891 - 6.19360 6.71512 16.45 ✎ F224 F224EDS01 Oyoko EDO - 5.91159 6.22219 - 6.12451 6.16437 24.96 ✎ F224 F224DES02 Agbor DELTA - 6.12451 6.16437 - 6.26673 6.18595 16.43 ✎ F225 F225ANS01 ONITSHA ANAMBRA - 6.13411 6.79298 - 6.30655 6.86459 25.84 ✎ F225 F225ANS02 - ANAMBRA - 6.30655 6.86459 - 6.49831 6.94211 24.79 ✎ F225 F225ANS03 ANAKU ANAMBRA - 6.49831 6.94211 - 6.71247 6.97600 27.25 ✎ F225 F225ENS04 IGBAKWU ENUGU - 6.71247 6.97600 - 6.72839 7.00047 3.71 ✎ F226 F226ANS01 AGULERI - - 6.18420 6.95430 - 6.25135 6.93982 7.85 ✎ F226 F226ANS02 UMULERI - - 6.25135 6.93982 - 6.32848 6.87724 11.58 ✎ F227 F227BAS01 OPUME BAYELSA Default 4.30266 6.24350 Default 4.54679 6.39455 0.00 ✎ F227 F227BAS02 KALA KOLO BAYELSA - 4.73961 6.36801 - 4.74563 6.36999 0.67 ✎ F227 F227BAS03 - BAYELSA - 4.54679 6.39455 - 4.88748 6.34194 51.11 ✎ F227 F227BAS04 YENEGWE BAYELSA - 4.88748 6.34194 - 5.06793 6.43766 26.37 ✎ F228 F228RIS01 EGBOLOM RIVERS - 4.76376 6.77139 - 4.89925 6.63967 24.99 ✎ F228 F228RIS02 - RIVERS - 4.89925 6.63967 - 5.06907 6.65066 20.49 ✎ F228 F228RIS03 - RIVERS - 5.06907 6.65066 - 5.26835 6.65227 25.09 ✎ F228 F228RIS04 OGBOGWO RIVERS - 5.26835 6.65227 - 5.49246 6.72733 28.50 ✎ F228 F228IMS05 - IMO - 5.49246 6.72733 - 5.65221 6.76736 21.53 ✎ F228 F228IMS06 AFOEGBU IMO - 5.65221 6.76736 - 5.77023 6.83965 16.97 ✎ F228 F228ANS07 - ANAMBRA - 5.77023 6.83965 - 5.78738 6.86509 18.00 ✎ F229 F229RIS01 IGRITA RIVERS - 4.87753 6.95376 - 4.98076 6.95022 12.99 ✎ F229 F229RIS02 E;LELE RIVERS - 4.98358 6.91765 - 5.23935 6.87426 35.37 ✎ F229 F229IMS03 - IMO - 5.23935 6.87426 - 5.41629 6.96664 26.60 ✎ F229 F229IMS04 OWERRI IMO - 5.41629 6.96664 - 5.48932 7.02052 13.92 ✎ F229 F229IMS05 AMURIE IMO - 5.49069 7.02635 - 5.70586 7.00986 25.02 ✎ F229 F229IMS06 - IMO - 5.70586 7.00986 - 5.90882 7.01590 25.32 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.