Segments (1176) Delete Previous Page 13 of 24 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) ✎ F117 F117EKS03 ADO EKITI EKITI Default 7.61211 5.12887 Default 7.60929 5.33871 0.00 ✎ F117 F117ONS04 ISO ONDO Default 7.26400 5.39220 Default 7.19211 5.59483 0.00 ✎ F117 F117EKS04 AISEGBA EKITI Default 7.60929 5.33871 Default 7.58057 5.53165 0.00 ✎ F117 F117ONS05 OWO ONDO Default 7.19211 5.59483 Default 7.01550 5.71260 0.00 ✎ F117 F117EKS05 GBAGI AKOKO EKITI Default 7.58057 5.53165 Default 7.55287 5.70924 0.00 ✎ F117 F117ONS06 UGBOLAN ONDO Default 7.01550 5.71260 Default 6.85910 5.77910 0.00 ✎ F117 F117EKS06 IKARE EKITI Default 7.55287 5.70924 Default 7.46051 5.87500 0.00 ✎ F117 F117EDS07 EDO BRD EDO Default 6.85910 5.77910 Default 6.65770 5.76770 0.00 ✎ F117 F117EKS07 ISHUA ONDO Default 7.46051 5.87500 Default 7.45192 5.93354 0.00 ✎ F117 F117EDS08 ODIGHI EDO Default 6.65770 5.76770 Default 6.52870 5.63250 0.00 ✎ F117 F117EKS08 - EDO Default 7.45192 5.93354 Default 7.35914 6.08066 0.00 ✎ F117 F117EDS09 IGBEKUE EDO Default 6.52870 5.63250 Default 6.41010 5.71240 0.00 ✎ F117 F117EDS10 IDOKPA EDO Default 6.41010 5.71240 Default 6.30810 5.86800 0.00 ✎ F117 F117EDS11 ADOA EDO Default 6.30810 5.86800 Default 6.27930 6.07710 0.00 ✎ F117 F117DES12 DELTA BRD DELTA Default 6.27930 6.07710 Default 6.27380 6.30010 0.00 ✎ F117 F117EDS12 OGBOMA EDO Default 7.10007 6.48425 Default 7.10779 6.69381 0.00 ✎ F117 F117DES13 EMUNEDE DELTA Default 6.27380 6.30010 Default 6.28020 6.51240 0.00 ✎ F117 F117EDS13 RIVER - Default 7.10779 6.69381 Default 7.11054 6.73007 0.00 ✎ F117 F117DES14 OBULU DELTA Default 6.28020 6.51240 Default 6.19270 6.71740 0.00 ✎ F117 F117KOS14 AFAGBA KOGI Default 7.07754 6.94851 Default 6.99768 7.14718 0.00 ✎ F117 F117DES15 UMUGAGU DELTA Default 6.19270 6.71740 Default 6.13478 6.75780 0.00 ✎ F117 F117KOS15 OKPUJE ENUGU Default 6.99768 7.14718 Default 6.89979 7.33862 0.00 ✎ F117 F117ANS16 ANAM BRD ANAMBRA Default 6.13478 6.75780 Default 6.24805 6.93220 0.00 ✎ F117 F117KOS16 NSUKKA ENUGU Default 6.89979 7.33862 Default 6.91436 7.52091 0.00 ✎ F117 F117ANS17 AWKUZU ANAMBRA Default 6.24805 6.93220 Default 6.25600 7.14708 0.00 ✎ F117 F117ENS17 OBOLO-EKE ENUGU Default 6.91436 7.52091 Default 6.80889 7.70946 0.00 ✎ F117 F117ENS18 ENUGU BRD ENUGU Default 6.25600 7.14708 Default 6.33650 7.33780 0.00 ✎ F117 F117ENS19 INDUNO ENUGU Default 6.33650 7.33780 Default 6.47070 7.48580 0.00 ✎ F117 FII7ENS20 ABKPA ENUGU Default 6.47070 7.48580 Default 6.47179 7.74490 0.00 ✎ F118 F118S01 TEMIDIRE OYO - 8.01213 2.71730 - 7.95807 2.93153 25.00 ✎ F118 F118S02 IWEE-ILE OYO - 7.95807 2.93153 - 7.99945 3.10899 24.84 ✎ F118 F118S03 IGANA OYO - 7.99945 3.10899 - 8.00854 3.31889 25.09 ✎ F118 F118S04 ABULE OJO OYO - 8.00854 3.31889 - 8.00686 3.51103 26.56 ✎ F118 F118S05 ISEYIN OYO - 8.00686 3.51103 - 7.91449 3.70235 25.07 ✎ F118 F118S06 OYO OYO - 7.91449 3.70235 - 7.86197 3.90252 25.46 ✎ F118 F118S07 - OYO - 7.86197 3.90252 - 7.84984 3.90709 3.25 ✎ F118 F118S08 AKAPO OYO - 7.84984 3.90709 - 7.72466 4.06893 25.01 ✎ F118 F118S09 IWO OSUN - 7.72466 4.06893 - 7.48586 4.34595 46.20 ✎ F118-1 F118-1S01 IJEMU OSUN - 7.46777 4.33175 - 7.62569 4.43955 22.04 ✎ F119 F119EKS01 - EKITI Default 7.76851 5.72110 Default 7.71644 5.73746 0.00 ✎ F119 F119ODS02 - ONDO Default 7.71644 5.73746 Default 7.61637 5.89097 0.00 ✎ F119 F119ODS03 - ONDO Default 7.61921 5.89488 Default 7.60832 5.96634 0.00 ✎ F119 F119KOS04 - KOGI Default 7.60832 5.96634 Default 7.61368 6.15651 0.00 ✎ F119 F119KOS05 - KOGI Default 7.61368 6.15651 Default 7.57798 6.21963 0.00 ✎ F119 F119KOS06 - KOGI Default 7.52659 6.25531 Default 7.51882 6.46704 0.00 ✎ F119 F119KOS07 - KOGI Default 7.51882 6.46704 Default 7.45621 6.67084 0.00 ✎ F119 F119KOS08 - KOGI Default 7.45621 6.67084 Default 7.41689 6.87408 0.00 ✎ F119 F119KOS09 - KOGI Default 7.41689 6.87408 Default 7.41557 7.08467 0.00 ✎ F119 F119KOS10 - KOGI Default 7.41557 7.08467 Default 7.49243 7.17100 0.00 ✎ F120 F120BES01 - BENUE - 6.79829 9.02100 - 6.68475 9.15566 23.41 API API Reference (Current)Base prefix: /api/ (for DRF endpoints under all_roads/api/urls.py)1) List all segmentsMethod: GETPath: /api/all_segments/Handler: all_roads.api.views.all_segments_viewResponse: serialized Segment records (SegmentSerializer, fields='__all__')2) Queue refreshMethod: POSTPath: /api/update-segments/queue/Handler: all_roads.api.views.queue_refreshRequest JSON (optional):{ "codes": ["F100LAS1", "F102RIV2"] }Response JSON:{ "task_id": "<celery-task-id>" }3) Task statusMethod: GETPath: /api/tasks/<uuid:task_id>/Handler: all_roads.api.views.task_statusResponse JSON:task_idstateresult (if successful)error (if failed)Website JSON endpoints (non-DRF but API-like)4) Road inventory route detailsMethod: GETPath: /road-inventory/route-details/Query params:route (required)Handler: website.views.road_inventory_route_detailsResponse JSON:summary objectsegments array5) Segment code searchMethod: GETPath: /segments/search/Query params:q (min length 2)Handler: website.views.segment_code_search6) Road condition subsegmentsMethod: GETPath: /road-condition/subsegments/Query params:segment (required)Handler: website.views.road_condition_subsegments7) Road condition save draftMethod: POSTPath: /road-condition/save-draft/Handler: website.views.road_condition_save_draftCreates draft defects for selected sub-segments where eligible.8) Library segment editorMethod: POSTPath: /library/road-inventory/segments/<segment_code>/Handler: website.views.library_segment_editorPurpose: update a segment from the Library Road Inventory edit modal.9) Library subsegment editorMethod: POSTPath: /library/road-inventory/subsegments/<subsegment_code>/Handler: website.views.library_subsegment_editorPurpose: update Library inline sub-segment fields:start_pointend_point10) Library segment bulk deleteMethod: POSTPath: /library/road-inventory/delete/Handler: website.views.library_segments_bulk_deletePurpose: bulk delete selected segment rows from Library Road Inventory.11) Library subsegment bulk deleteMethod: POSTPath: /library/road-inventory/subsegments/delete/Handler: website.views.library_subsegments_bulk_deletePurpose: delete selected sub-segments from an expanded Library segment row and renumber the remaining sub-segments for that parent segment.Auth and permissions notesSome endpoints currently use AllowAny and should be reviewed for production hardening if public write access is not intended.JWT authentication is configured globally in DRF settings, but endpoint-level permission decorators control openness.API operational recommendationsUse queue refresh endpoint for production updates.Poll task status endpoint for completion and summary.Add rate and permission controls before exposing write-capable endpoints publicly. Uploads Download template Select file (.xls, .xlsx, .csv) Begin Upload Uploading, please wait... Upload summary Download error CSV
API Reference (Current)Base prefix: /api/ (for DRF endpoints under all_roads/api/urls.py)1) List all segmentsMethod: GETPath: /api/all_segments/Handler: all_roads.api.views.all_segments_viewResponse: serialized Segment records (SegmentSerializer, fields='__all__')2) Queue refreshMethod: POSTPath: /api/update-segments/queue/Handler: all_roads.api.views.queue_refreshRequest JSON (optional):{ "codes": ["F100LAS1", "F102RIV2"] }Response JSON:{ "task_id": "<celery-task-id>" }3) Task statusMethod: GETPath: /api/tasks/<uuid:task_id>/Handler: all_roads.api.views.task_statusResponse JSON:task_idstateresult (if successful)error (if failed)Website JSON endpoints (non-DRF but API-like)4) Road inventory route detailsMethod: GETPath: /road-inventory/route-details/Query params:route (required)Handler: website.views.road_inventory_route_detailsResponse JSON:summary objectsegments array5) Segment code searchMethod: GETPath: /segments/search/Query params:q (min length 2)Handler: website.views.segment_code_search6) Road condition subsegmentsMethod: GETPath: /road-condition/subsegments/Query params:segment (required)Handler: website.views.road_condition_subsegments7) Road condition save draftMethod: POSTPath: /road-condition/save-draft/Handler: website.views.road_condition_save_draftCreates draft defects for selected sub-segments where eligible.8) Library segment editorMethod: POSTPath: /library/road-inventory/segments/<segment_code>/Handler: website.views.library_segment_editorPurpose: update a segment from the Library Road Inventory edit modal.9) Library subsegment editorMethod: POSTPath: /library/road-inventory/subsegments/<subsegment_code>/Handler: website.views.library_subsegment_editorPurpose: update Library inline sub-segment fields:start_pointend_point10) Library segment bulk deleteMethod: POSTPath: /library/road-inventory/delete/Handler: website.views.library_segments_bulk_deletePurpose: bulk delete selected segment rows from Library Road Inventory.11) Library subsegment bulk deleteMethod: POSTPath: /library/road-inventory/subsegments/delete/Handler: website.views.library_subsegments_bulk_deletePurpose: delete selected sub-segments from an expanded Library segment row and renumber the remaining sub-segments for that parent segment.Auth and permissions notesSome endpoints currently use AllowAny and should be reviewed for production hardening if public write access is not intended.JWT authentication is configured globally in DRF settings, but endpoint-level permission decorators control openness.API operational recommendationsUse queue refresh endpoint for production updates.Poll task status endpoint for completion and summary.Add rate and permission controls before exposing write-capable endpoints publicly.