CO2 by coordinates
API endpoint
1https://www.searates.com/graphql_co2
xxxxxxxxxx
{
co2ByCoordinates(
latFrom: 19.0759837
lngFrom: 72.8776559
latTo: 49.2827291
lngTo: -123.1207375
shippingType: "air"
transportType: "default"
isRef: false
containerType: "ot20"
weight: 15
) {
amount
price
}
}
{"Authorization": "Bearer {token}"}
Query params
Property | Type | Description |
---|---|---|
| float, required | Coordinates for place of loading. |
| float, required | Coordinates for place of discharge. |
shippingType | string, required | Shipping type. |
transportType | string, required | A parameter that is matched to the current shipping type. |
isRef | boolean | If the container is a refrigerator or a standard. |
containerType | string | A type of the container. This parameter defines the average container weight. |
weight | float | Transported cargo weight in tons. |
Response
Property | Type | Description |
---|---|---|
amount | float | The CO2 value in grams. |
price | float | The carbon offset compensation in USD. |