{"id":2750,"date":"2023-12-20T20:38:00","date_gmt":"2023-12-20T20:38:00","guid":{"rendered":"https:\/\/developers.maplink.global\/list-of-parameters-5\/"},"modified":"2024-03-05T12:47:49","modified_gmt":"2024-03-05T12:47:49","slug":"list-of-parameters-freight","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/list-of-parameters-freight\/","title":{"rendered":"List of parameters"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Mandatory parameters<\/strong><\/h2>\n\n<ul class=\"wp-block-list\">\n<li><code>operationType<\/code>  &#8211; Array to indicate which Operation Table will be considered for calculating freight. Allowed values: <strong>[<code>A, B, C, D<\/code>]<\/strong>;<\/li>\n\n\n\n<li><code>goodsType<\/code> <em>&#8211;<\/em> Array to indicate which products will be transported. Allowed values: \n<ul class=\"wp-block-list\">\n<li><strong><code>GRANEL_SOLIDO<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>GRANEL_LIQUIDO<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>FRIGORIFICADA_OU_AQUECIDA<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>CONTEINERIZADA<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>CARGA_GERAL<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>NEOGRANEL<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>PERIGOSA_GRANEL_SOLIDO<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>PERIGOSA_GRANEL_LIQUIDO<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>PERIGOSA_FRIGORIFICADA_OU_AQUECIDA<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>PERIGOSA_CONTEINERIZADA<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>PERIGOSA_CARGA_GERAL<\/code><\/strong><\/li>\n\n\n\n<li><strong><code>GRANEL_PRESSURIZADA<\/code><\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>axis<\/code>  &#8211; Array to enter the number of axes. Allowed values: <strong>[<code>2, 3, 4, 5, 6, 7, 9<\/code>]<\/strong>;<\/li>\n\n\n\n<li><code>distance<\/code>  &#8211; Integer with the distance traveled on the route (in km);<\/li>\n\n\n\n<li><code>date<\/code>  &#8211; Date format  <strong><code>AAAA-MM-DD<\/code><\/strong>. The service will use the freight rates in force on the date entered in this parameter.<\/li>\n<\/ul>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite><strong>Note:<\/strong> If you use the Freight API integrated with the Trip API or the Toll for Maps API, the <strong>distance<\/strong> parameter will not be necessary.<\/cite><\/blockquote>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\"><strong>Optional parameters<\/strong><\/h2>\n\n<ul class=\"wp-block-list\">\n<li><code>roundTrip<\/code>  &#8211; To indicate whether the freight will be calculated one-way or round-trip. Allowed values:\n<ul class=\"wp-block-list\">\n<li><code>true<\/code>  &#8211; The distance in km of the route will be multiplied by 2 to calculate the minimum freight;<\/li>\n\n\n\n<li><code>false<\/code>  &#8211; Default value. The calculation will only be made on the outward journey;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>backEmpty<\/code> &#8211; <em> To<\/em> indicate whether the vehicle will return empty or not. Allowed values:\n<ul class=\"wp-block-list\">\n<li><code>true<\/code>  &#8211; Payment for the obligatory empty return 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.<\/li>\n\n\n\n<li><code>false<\/code>  &#8211; Default value. The calculation will be carried out as normal.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>otherCosts<\/code>  &#8211; Array that allows you to include additional costs that will be added to the other costs of the route. They have the following parameters:\n<ul class=\"wp-block-list\">\n<li><code>name<\/code>  &#8211; Text with the name of the cost.<\/li>\n\n\n\n<li><code>type<\/code> &#8211; Cost <em> type <\/em>to apply percentage or fixed cost to the minimum freight amount. Allowed values: <strong>[<code>PERCENT, FIXED<\/code>]<\/strong><\/li>\n\n\n\n<li><code>value<\/code> <em>&#8211;<\/em> Decimal number to be applied when calculating the cost.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Mandatory parameters Note: If you use the Freight API integrated with the Trip API or the Toll for Maps API, the distance parameter will not be necessary. Optional parameters<\/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-2750","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\/2750","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=2750"}],"version-history":[{"count":3,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2750\/revisions"}],"predecessor-version":[{"id":2753,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2750\/revisions\/2753"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}