SRDV Knowledge Centre

How to determine the total number of rows and columns in the seat layout?

Clear, practical guidance from SRDV Technologies specialists to help you make informed travel technology decisions.

Searchable knowledge base Implementation-focused answers Guidance from travel technology experts
Expert answer

A clear answer from our specialists

Review the answer below, then contact our team if you need guidance for your own platform or integration.

SRDV expert guidanceHow to determine the total number of rows and columns in the seat layout?

The updated API does not include separate tags for total_rows or total_columns. However, you can easily calculate them by parsing the seat layout JSON.

Each seat object includes its position like this:

{ "ColumnNo": 2, "RowNo": 4 }

To determine the full layout:

  • Total Rows = Highest RowNo + 1
  • Total Columns = Highest ColumnNo + 1

 

You can compute these values dynamically using a simple loop or function in your integration technology (JavaScript, PHP, etc.).

This approach allows the API to remain lightweight while giving full control to developers for layout rendering.

Need a solution-specific answer?

Plan your travel technology project with SRDV

Share your business model, supplier requirements and launch goals with our specialists.

Request a Demo Contact Us
Cloud ecosystem

Our Cloud Partners

Secure, scalable cloud infrastructure for travel technology.