Add Store
Adds a store to the model
Adds a store to the model
Advance the simulation instance by one step.
POST request for Commodity_total with timeframe and option in body.
commodity_total/ endpoint accepts a timeframe and an option specifying either state or region. It returns a CSV file detailing the difference between the tonnage of each commodity imported and exported from each area by year. Currently, this endpoint supports domestic trade only, with plans for future updates to include international import and export data related to the U.S.
Create a new simulation instance.
Populates data choices based on keyword received (POST method)
Populates data choices based on keyword received (GET method)
Delete a simulation instance by ID.
Submit export request with POST body
imports_exports_details/ takes in a region or state with a year or year frame and returns all exported commodities from that area. The endpoint returns the commodity type, the transportation type, the area the commodity was sent to, and the year's ton and value.
get_mode_details/ takes in a region or state with a year or year frame and returns all mode details.
get_mode_details/ takes in a region or state with a year or year frame and returns all mode details.
Gets all households in the model
Gets household stats
Gets the number of households in the model
Gets the number of stores in the model
Get a specific simulation instance by ID.
Get the simulation instances visible to the caller.
Gets the current step number the model is at
Gets all stores in the model
The endpoint provides detailed information about foreign and domestic exports and imports for the past five years
Populates data choices based on keyword recieved
Populates data choices based on keyword recieved
Populates data choices based on keyword recieved
get_table_data/ retrieves one of six fully populated tables based on the year timeframe provided. The return is a downloadable CSV file. The data will contain the origin, destination, commodity type, transportation type, distance traveled, tonnage, and value based on the timeframe provided.
Health check endpoint to verify the API is running properly
import_export_sum/ takes a region or state and a timeframe, then sums up each commodity
Returns a CAV file detailing all one-way trade between two specified locations. The data includes:
Returns a CAV file detailing all one-way trade between two specified locations. The data includes:
Removes a store from a model given a store_id, simulation_instance_id, and simulation_step
Reset the simulation instance to its initial state and deletes data from other steps.