API: Get Specific Route

Request

Retrieve a specific route by ID:

GET /routes/{id}

Sample Response:


{
  "status": "success",
  "message": "Route retrieved successfully",
  "data": {
    "id": 1,
    "start_name": "Updated District 1",
    "end_name": "Updated District 1",
    "distance": 1300,
    "duration": "02:45",
    "is_popular": "0",
    "popular_position": "",
    "status": "1"
  }
}