Skip to content

Releases: bababebr/Crude-Cargo-Calculator

Utils: Vcf calculation feature

05 Oct 13:52
fef3eed
Compare
Choose a tag to compare

In new release VCF calculation feature was added in Utils section.

End Point: /utils/vcf

EndPoint

End point requires 3 parameters:

params

  1. "table" - for now 4 different tables are available ("Table6A", "Table6B", "Table54A", "Table54B");
  2. "api" - could be API or density;
  3. "temp" - temperature in Celsius or Fahrenheit;

So, VCF could be calculated using any combination of four - API or Density + Celsius or Fahrenheit;
To determinate what units are to be used, End point has two request headers - "Is-Api" and "Is-Celsius"
Headers

Example:

API = 33.5; Temperature = 110; Table = Table6A; Is-Api = True; Is-Celsius = False
Result:
Result