Segments (1122) Delete Previous Page 21 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) ✎ F239 F239BES04 Ukpa BENUE - 6.92262 8.44765 - 7.11557 8.49597 24.96 ✎ F239 F239BES05 Kpom BENUE - 7.11557 8.49597 - 7.29158 8.51940 20.16 ✎ F240 F240NAS01 ANDAHA NASARAWA - 8.90205 8.41081 - 9.11045 8.40424 25.02 ✎ F240 F240KAS02 NUNGBO KADUNA - 9.11045 8.40424 - 9.22927 8.45762 15.62 ✎ F242 F242TAS01 GIDAN AMADU TARABA - 7.25204 9.97468 - 7.45838 9.94370 24.96 ✎ F242 F242TAS02 KPEGA TARABA - 7.45838 9.94370 - 7.66871 9.89723 25.01 ✎ F242 F242TAS03 JABWAJE TARABA - 7.66871 9.89723 - 7.86454 9.79497 26.69 ✎ F242 F242TAS04 WUKARI TARABA - 7.86454 9.79497 - 8.06767 9.79829 25.10 ✎ F242 F242TAS05 IBI TARABA - 8.06767 9.79829 - 8.25180 9.69651 25.02 ✎ F242 F242TAS06 - TARABA - 8.25180 9.69651 - 8.37779 9.68854 14.23 ✎ F242 F242PLS07 OBUNDE PLATEAU - 8.37779 9.68854 - 8.46780 9.67833 10.79 ✎ F242 F242PLS08 YAMINI PLATEAU - 8.46780 9.67833 - 8.67285 9.65453 24.93 ✎ F242 F242PLS09 INSHAR PLATEAU - 8.67285 9.65453 - 8.85584 9.59657 25.06 ✎ F242 F242PLS10 SHENDAM PLATEAU - 8.85584 9.59657 - 8.96493 9.44360 25.02 ✎ F242 F242PLS11 GIDAN LIGIDI PLATEAU - 8.96493 9.44360 - 9.11680 9.33379 25.04 ✎ F242 F242PLS12 GU PLATEAU - 9.11680 9.33379 - 9.27411 9.27186 24.97 ✎ F242 F242PLS13 NIYES PLATEAU - 9.27411 9.27186 - 9.44107 9.18948 24.93 ✎ F242 F242PLS14 MONGU PLATEAU - 9.44107 9.18948 - 9.51988 9.01025 25.09 ✎ F242 F242PLS15 RAFAN PLATEAU - 9.51988 9.01025 - 9.63478 8.89159 24.99 ✎ F242 F242PLS16 BUKURU PLATEAU - 9.63478 8.89159 - 9.72143 8.86547 10.96 ✎ F243 F243S01 DAN ALHAJI KADUNA - 10.44093 8.65451 - 10.63075 8.64501 24.94 ✎ F243 F243S02 MAIGUDU KANO - 10.63075 8.64501 - 10.83670 8.57327 25.04 ✎ F243 F243S03 KOGIN KANO KANO - 10.83670 8.57327 - 11.03846 8.60985 25.02 ✎ F243 F243S04 FALGORE KANO - 11.03846 8.60985 - 11.21373 8.48388 25.08 ✎ F243 F243S05 YAR MAYARA KANO - 11.21373 8.48388 - 11.32578 8.31629 24.90 ✎ F243 F243S06 RAFIN MAIYAKI KANO - 11.32578 8.31629 - 11.46327 8.19743 21.24 ✎ F244 F244KNS01 GANDU KANO - 12.22142 8.50621 - 12.32994 8.69881 25.03 ✎ F244 F244KNS02 - KANO - 12.32994 8.69881 - 12.39164 8.78453 12.00 ✎ F244 F244JIS03 FOGOLAWA JIGAWA - 12.39164 8.78453 - 12.47445 8.86947 13.48 ✎ F244 F244JIS04 RAHA JIGAWA - 12.47445 8.86947 - 12.66609 8.97682 24.98 ✎ F244 F244JIS05 - JIGAWA - 12.66609 8.97682 - 12.80929 9.00331 17.13 ✎ F244 F244KTS06 JIGAWA KATSINA - 12.80929 9.00331 - 12.83570 8.98622 3.53 ✎ F245 F245KDS01 Jengre-Ningi KADUNA - 10.29837 8.77984 - 10.31290 8.79873 18.76 ✎ F245 F245PLS02 PLBDRY PLATEAU - 10.31290 8.79873 - 10.36938 8.84070 9.26 ✎ F245 F245BAS03 BABDRY BAUCHI - 10.36938 8.84070 - 10.50832 8.96876 25.27 ✎ F245 F245BAS04 Sabon Kaura BAUCHI - 10.50832 8.96876 - 10.70261 8.99751 25.30 ✎ F245 F245BAS05 Gunda BAUCHI - 10.70261 8.99751 - 10.82285 9.17243 24.81 ✎ F245 F245BAS06 Maidubi BAUCHI - 10.82285 9.17243 - 10.95636 9.31182 25.05 ✎ F245 F245BAS07 Jimmi BAUCHI - 10.95636 9.31182 - 11.01770 9.52056 25.11 ✎ F245 F245BAS08 Kabara BAUCHI - 11.01770 9.52056 - 11.21208 9.60571 24.77 ✎ F245 F245BAS09 Shabaki BAUCHI - 11.21207 9.60560 - 11.31568 9.60125 15.80 ✎ F246 F246BAS01 Bauchi BAUCHI - 10.34692 9.84102 - 10.54536 9.76781 25.20 ✎ F246 F246BAS02 Siri Hill BAUCHI - 10.54536 9.76781 - 10.75692 9.77845 25.02 ✎ F246 F246BAS03 Kula Hill BAUCHI - 10.75692 9.77845 - 10.92821 9.68473 24.74 ✎ F246 F246BAS04 Zakara BAUCHI - 10.92821 9.68473 - 11.07111 9.56937 26.85 ✎ F247 F247PLS01 LANGTANG PLATAEU - 9.13228 9.79003 - 9.32277 9.73860 25.06 ✎ F247 F247PLS02 BAN PLATAEU - 9.32277 9.73860 - 9.37711 9.54609 25.05 ✎ F247 F247PLS03 AMPAN PLATAEU - 9.37711 9.54609 - 9.35490 9.37695 23.93 ✎ F247 F247PLS04 COCIN BAURE PANYAM PLATAEU - 9.35490 9.37695 - 9.43324 9.19176 25.05 ✎ F247 F247PLS05 PSU BOKKOS PLATAEU - 9.43324 9.19176 - 9.52161 9.01866 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.