{"id":2766,"date":"2023-12-20T20:46:32","date_gmt":"2023-12-20T20:46:32","guid":{"rendered":"https:\/\/developers.maplink.global\/example-4-calculating-empty-round-trip-freight\/"},"modified":"2024-03-04T13:30:25","modified_gmt":"2024-03-04T13:30:25","slug":"example-4-calculating-empty-round-trip-freight","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/example-4-calculating-empty-round-trip-freight\/","title":{"rendered":"Example 4 &#8211; Calculating empty round-trip freight"},"content":{"rendered":"\n<p>On a route between Rio de Janeiro and S\u00e3o Paulo (435 km), a haulier wants to obtain the freight rate for a truck with 5 double axles that will transport general cargo and return to the point of origin empty.<\/p>\n\n<p>The type of operation contracted is &#8220;Cargo vehicle operation only&#8221; (Table B), where a flat rate of $250.00 will be added.<\/p>\n\n<p><strong>Endpoint used:<\/strong> https:\/\/api.maplink.global\/freight\/v1\/calculations (Method: <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong>)<\/p>\n\n<p>The full request can be found below:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"operationType\": [\n        \"B\"\n    ],\n    \"goodsType\": [\n        \"CARGA_GERAL\"\n    ],\n    \"axis\": [\n        5\n    ],\n    \"roundTrip\": true,\n    \"backEmpty\": true,\n    \"distance\": 435,\n    \"otherCosts\": [\n        {\n            \"name\": \"Taxa Fixa\",\n            \"type\": \"FIXED\",\n            \"value\": 250\n        }\n    ],\n    \"date\": \"2021-12-02\"\n}<\/pre>\n\n<p>When the value of the parameter <code>backEmpty<\/code> is changed to <code>true<\/code>, the obligatory empty return payment will be calculated as 92% (ninety-two percent) of the value of the displacement cost coefficient (CCD) of the vehicle composition used multiplied by the return distance, as set out in the contract.<\/p>\n\n<p>The full response can be found below:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"source\": \"RESOLU\u00c7\u00c3O N\u00ba 496, DE 19 DE OUTUBRO DE 2021\",\n    \"results\": {\n        \"B\": {\n            \"5\": {\n                \"CARGA_GERAL\": {\n                    \"value\": 3249.66,\n                    \"otherCosts\": {\n                        \"Taxa Fixa\": 250\n                    }\n                }\n            }\n        }\n    },\n    \"minimumFreight\": 3249.66,\n    \"minimumFreightWithCosts\": 3499.66\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On a route between Rio de Janeiro and S\u00e3o Paulo (435 km), a haulier wants to obtain the freight rate for a truck with 5 double axles that will transport general cargo and return to the point of origin empty. The type of operation contracted is &#8220;Cargo vehicle operation only&#8221; (Table B), where a flat [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[167],"tags":[],"class_list":["post-2766","post","type-post","status-publish","format-standard","hentry","category-freight-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=2766"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2766\/revisions"}],"predecessor-version":[{"id":2767,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2766\/revisions\/2767"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}