FlyerTalk Forums - View Single Post - Amtrak removes real time seat availability information
Old Dec 24, 2023 | 9:12 am
  #7  
serpens
 
Join Date: Sep 2015
Location: flyover country
Posts: 2,845
Originally Posted by boswash52
[...]
But that key was always weird because the seatCapacityInfo object also includes availableInventory and criticalCapacity, and was the rounded quotient of those two values (except sometimes criticalCapacity is zero for some fare types but usually it's non-zero for at least one fare type within a given class). So if you're willing to poke through the JSON data (whether by hand or by automation), this information is still available by dividing two numbers. Or maybe the actual number of available seats is more interesting, though of course consists vary in length.
[...]
Here's the seatCapacityInfo from the JSON for Train 160 from New York to Boston on Christmas Day, the 9am departure:
[...]
Thank you posting that info. I have two groups of questions.

Where do I find that JSON info? I know how to get the raw page source; is it in there?

What is criticalCapacity? What is availableInventory? Sometimes one is larger and sometimes the other, which mean that sometimes the quotient is larger than unity and sometimes smaller, which doesn't make sense. It seems I'm misunderstanding something.
serpens is offline