Segments (1122) Delete Previous Page 1 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) ✎ A1 A1LAS01 IKORODU RD LAGOS - 6.44158 3.37817 - 6.60932 3.42942 26.90 ✎ A1 A1LAS02 IKORODU TOWN LAGOS - 6.60932 3.42942 - 6.68331 3.51117 17.09 ✎ A1 A1OGS03 SAGAMU OGUN - 6.68331 3.51117 - 6.85724 3.63014 26.27 ✎ A1 A1OGS04 IPARA OGUN - 6.85724 3.63014 - 7.10639 3.71056 33.24 ✎ A1 A1OGS05 ONIGBODOGI OGUN - 7.10639 3.71056 - 7.15111 3.79013 10.39 ✎ A1 A1OYS06 - OYO - 7.15111 3.79013 - 7.23767 3.85973 13.61 ✎ A1 A1OYS07 IBADAN OYO - 7.23767 3.85973 - 7.43333 3.91219 30.40 ✎ A1 A1OYS08 AKINYELE OYO - 7.43333 3.91219 - 7.64982 3.91845 25.00 ✎ A1 A1OYS09 OYO OYO - 7.64982 3.91845 - 7.84292 3.91903 25.00 ✎ A1 A1OYS10 OYO-OGBO ROAD OYO - 7.84292 3.91903 - 7.96031 4.06886 25.04 ✎ A1 A1OYS11 OGBOMOSHO OYO - 7.96031 4.06886 - 8.11517 4.22144 25.01 ✎ A1 A1OYS12 ABDUKA OYO - 8.11517 4.22144 - 8.31316 4.38709 32.06 ✎ A1 A1KWS13 ILORIN KWARA - 8.31316 4.38709 - 8.49693 4.54929 27.49 ✎ A1 A1KWS14 - KWARA - 8.49693 4.54929 - 8.69309 4.61098 25.15 ✎ A1 A1KWS15 - KWARA - 8.69309 4.61098 - 8.87893 4.73190 24.86 ✎ A1 A1KWS16 - KWARA - 8.87893 4.73190 - 8.93869 4.77967 8.47 ✎ A1 A1KWS17 - KWARA - 8.93869 4.77967 - 9.13165 4.81529 23.25 ✎ A1 A1NIS18 TSAFA NIGER - 9.13165 4.81529 - 9.24604 4.97049 24.04 ✎ A1 A1NIS19 MOKWA NIGER - 9.24604 4.97049 - 9.32230 5.14648 21.77 ✎ A1 A1NIS20 ROBHZNI NIGER - 9.32230 5.14648 - 9.49539 5.27353 25.36 ✎ A1 A1NIS21 PIZHI NIGER - 9.53442 5.29643 - 9.68395 5.39983 20.83 ✎ A1 A1NIS22 SONGKO NIGER - 9.68395 5.39983 - 9.93485 5.39158 29.53 ✎ A1 A1NIS23 KABOGI NIGER - 9.93485 5.39158 - 10.15020 5.39708 24.99 ✎ A1 A1NIS24 RAFINGORA NIGER - 10.15020 5.39708 - 10.36169 5.42523 25.07 ✎ A1 A1NIS25 MATANDI NIGER - 10.36169 5.42523 - 10.43424 5.27933 25.20 ✎ A1 A1NIS26 IBETO NIGER - 10.42030 5.27933 - 10.51100 5.07425 25.67 ✎ A1 A1NIS27 ISANA NIGER - 10.51100 5.07425 - 10.64171 4.89803 25.05 ✎ A1 A1NIS28 IFANA NIGER - 10.64171 4.89803 - 10.70059 4.81289 11.76 ✎ A1 A1KES29 - KEBBI - 10.70059 4.81289 - 10.80141 4.75812 13.17 ✎ A1 A1KES30 TONDI KEBBI - 10.80141 4.75812 - 11.01507 4.76814 24.98 ✎ A1 A1KES31 KURA HILLS KEBBI - 11.01507 4.76814 - 11.19018 4.63731 24.89 ✎ A1 A1KES32 NOMA KEBBI - 11.19018 4.63731 - 11.39406 4.55649 25.07 ✎ A1 A1KES33 TUNGNILO KEBBI - 11.39406 4.55649 - 11.56819 4.47888 22.17 ✎ A1 A1SOS34 KUCHI SOKOTO - 11.56819 4.47888 - 11.73284 4.47223 19.25 ✎ A1 A1KES35 KWARI KWASA KEBBI - 11.73284 4.47223 - 11.93553 4.39304 24.91 ✎ A1 A1KES36 MAIYEMA KEBBI - 11.93553 4.39304 - 12.15498 4.37614 25.01 ✎ A1 A1KES37 JEGA KEBBI - 12.15498 4.37614 - 12.31201 4.49410 24.96 ✎ A1 A1KES38 GITA GRUGE KEBBI - 12.31201 4.49410 - 12.36658 4.58970 12.09 ✎ A1 A1SOS39 TAMBUWEI SOKOTO - 12.36658 4.58970 - 12.41444 4.66072 9.46 ✎ A1 A1KES40 MALISSA KEBBI - 12.41444 4.66072 - 12.45126 4.75837 11.61 ✎ A1 A1SOS41 ROGA SOKOTO - 12.45126 4.75837 - 12.56211 4.95331 25.05 ✎ A1 A1SOS42 SHAGARI SOKOTO - 12.56211 4.95331 - 12.74415 5.07139 24.96 ✎ A1 A1SOS43 TAKATUKU SOKOTO - 12.74415 5.07139 - 12.93292 5.19002 47.89 ✎ A1 A1SOS44 MINANATA SOKOTO - 12.93292 5.19002 - 13.11680 5.25387 25.96 ✎ A1 A1SOS45 BANKANU SOKOTO - 13.11680 5.25387 - 13.32276 5.22666 25.10 ✎ A1 A1SOS46 ASURA SOKOTO - 13.32276 5.22666 - 13.51737 5.30155 27.50 ✎ A1 A1SOS47 ILLIEA SOKOTO - 13.51737 5.30155 - 13.75557 5.28114 30.98 ✎ A10 A10NIS01 MANEGI NIGER - 9.68472 5.39980 - 9.79605 5.59265 25.07 ✎ A10 A10NIS02 JIRIKU NIGER - 9.79605 5.59265 - 9.93338 5.75856 24.95 ✎ A10 A10NIS03 TUNGAN ALI NIGER - 9.93338 5.75856 - 10.03786 5.94575 24.97 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.