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 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.