Segments (1122) Delete Previous Page 16 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) ✎ F200 F200OYS14 AGO OYO - 8.62098 3.60855 - 8.78035 3.73892 25.00 ✎ F200 F200OYS15 IGBOHO OYO - 8.78035 3.73892 - 8.98416 3.81109 24.95 ✎ F200 F200OYS16 KISHI OYO - 8.98416 3.81109 - 9.07888 3.85291 11.91 ✎ F201 F201KWS01 VERA KWARA - 9.60393 3.94083 - 9.73068 4.12159 25.03 ✎ F201 F201KWS02 WOROMOKATO KWARA - 9.73068 4.12159 - 9.75033 4.23465 13.07 ✎ F201 F201NIS03 - NIGER - 9.75033 4.23465 - 9.78562 4.33411 11.97 ✎ F201 F201NIS04 WAWA NIGER - 9.78562 4.33411 - 9.89989 4.40617 15.59 ✎ F201 F201NIS05 - NIGER - 9.89989 4.40617 - 9.86793 4.62006 27.68 ✎ F201 F201NIS06 - NIGER - 9.86793 4.62006 - 9.90820 4.64469 6.78 ✎ F201 F201NIS07 SABON GARAFINI NIGER - 9.90820 4.64469 - 10.08756 4.66816 25.00 ✎ F201 F201NIS08 MADUGURU NIGER - 10.08756 4.66816 - 10.23588 4.68508 22.57 ✎ F201 F201KES09 WAWU KEBBI - 10.23588 4.68508 - 10.45055 4.72819 26.96 ✎ F201 F201KES10 TUNGAN MAGAJI KEBBI - 10.45055 4.72819 - 10.63063 4.71182 25.03 ✎ F201 F201KES11 YELWA KEBBI - 10.63063 4.71182 - 10.84852 4.74361 26.08 ✎ F202 F202OYS01 SHAKI OYO - 8.50972 3.41858 - 8.72022 3.39121 25.02 ✎ F202 F202OYS02 - OYO/KWARA - 8.72022 3.39121 - 8.86656 3.42580 17.68 ✎ F202 F202KWS03 ALABAFI KWARA - 8.86656 3.42580 - 8.92521 3.41391 7.32 ✎ F202 F202KWS04 SINAU KWARA - 8.92521 3.41391 - 9.10582 3.28505 25.05 ✎ F202 F202KWS05 OKUTA KWARA - 9.10582 3.28505 - 9.29437 3.16653 24.91 ✎ F202 F202KWS06 SUYA KWARA - 9.29437 3.16653 - 9.50693 3.20588 25.03 ✎ F202 F202KWS07 KOSUBOSU KWARA - 9.50693 3.20588 - 9.55130 3.22782 5.49 ✎ F203 F203KES01 KANGAKOE KEBBI - 11.87112 3.62315 - 11.91437 3.81343 25.13 ✎ F203 F203KES02 GEZA KEBBI - 11.91437 3.81343 - 12.06361 3.97911 24.87 ✎ F203 F203KES03 BUNZA KEBBI - 12.06361 3.97911 - 12.23857 4.10835 25.00 ✎ F203 F203KES04 MARAFAKA KEBBI - 12.23857 4.10835 - 12.41775 4.19543 27.77 ✎ F203 F203KES05 ZAURO KEBBI - 12.41775 4.19543 - 12.52319 4.37346 28.29 ✎ F203 F203KES06 DANKIRIA KEBBI - 12.52319 4.37346 - 12.69907 4.51005 25.03 ✎ F203 F203KES07 ARGUNGU KEBBI - 12.69907 4.51005 - 12.74842 4.52576 5.78 ✎ F204 F204LAS01 IJEBU ODE LAGOS - 6.65606 3.79454 - 6.68311 3.79918 3.39 ✎ F204 F204OGS02 - OGUN - 6.68311 3.79918 - 6.89913 3.91728 33.80 ✎ F204 F204OGS03 AGO IWOYE OGUN - 6.89913 3.91728 - 7.02632 3.91327 28.26 ✎ F204 F204OGS04 - OGUN - 7.02632 3.91327 - 7.08360 3.90098 6.57 ✎ F204 F204OYS05 IDI AYUNRE OYO - 7.08360 3.90098 - 7.23441 3.86017 18.18 ✎ F205 F205OGS01 ATAN OGUN - 6.81936 3.91691 - 6.98143 4.00131 23.19 ✎ F205 F205OGS02 ALOBALOKE OGUN - 6.98143 4.00131 - 7.09753 4.18424 25.38 ✎ F205 F205OSS03 AJEGUNLE OSUN - 7.09753 4.18424 - 7.16302 4.35542 24.08 ✎ F205 F205OSS04 ABIRISHADE OSUN - 7.16302 4.35542 - 7.27809 4.40869 24.48 ✎ F205 F205OSS05 AYAKUNLE OSUN - 7.27809 4.40869 - 7.45160 4.48088 25.03 ✎ F205 F205OSS06 IFE OSUN - 7.45160 4.48088 - 7.48290 4.55957 9.73 ✎ F205 F205OSS07 - OSUN - 7.48290 4.55957 - 7.52281 4.47799 11.09 ✎ F205 F205OSS08 JAGUN EDE OSUN - 7.52281 4.47799 - 7.71733 4.49498 42.91 ✎ F205 F205OSS09 OSOGBO OSUN - 7.71733 4.49498 - 7.86937 4.64439 24.98 ✎ F205 F205OSS10 - OSUN - 7.86937 4.64439 - 8.05198 4.69571 22.93 ✎ F205 F205KWS11 OKUKU KWARA - 8.05198 4.69571 - 8.07127 4.70158 2.27 ✎ F205 F205KWS12 - KWARA - 8.07127 4.70158 - 8.24900 4.80813 25.25 ✎ F206 F206OSS01 ILESA OSUN - 7.58754 4.65486 - 7.71018 4.66451 25.00 ✎ F206 F206OSS02 OSOGBO OSUN - 7.71018 4.66451 - 7.83102 4.50135 27.54 ✎ F206 F206OSS03 - OSUN - 7.83102 4.50135 - 7.89838 4.43564 11.77 ✎ F206 F206OYS04 ILOBU OYO - 7.89838 4.43564 - 7.95140 4.34486 13.25 ✎ F206 F206OYS05 OGBOMOSO OYO - 7.95140 4.34486 - 8.13110 4.24547 25.05 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.