{"id":5667,"date":"2026-01-08T14:47:12","date_gmt":"2026-01-08T13:47:12","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=5667"},"modified":"2026-02-20T11:39:43","modified_gmt":"2026-02-20T10:39:43","slug":"object-spots","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/objects\/object-spots\/","title":{"rendered":"Object: spots"},"content":{"rendered":"\n<p>Col\u00adlec\u00adtion of freight spots \u2013 at least one load\u00ading and one unload\u00ading is required.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h6 class=\"wp-block-heading\" style=\"font-style:normal;font-weight:700\">Object Fields<\/h6>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Attribute<\/td><td>Type<\/td><td>Exam\u00adple<\/td><td>Manda\u00adto\u00adry<\/td><td>Descrip\u00adtion<\/td><\/tr><tr><td>descrip\u00adtion<\/td><td>String<\/td><td>descrip\u00adtion<\/td><td>No<\/td><td>Descrip\u00adtion of the load\u00ading or unload\u00ading place<\/td><\/tr><tr><td>name<\/td><td>String<\/td><td>ware\u00adhouse 1<\/td><td>No<\/td><td>Name of spot<\/td><\/tr><tr><td>oper\u00ada\u00adtions<\/td><td>Array of Objects<\/td><td><\/td><td>Yes<\/td><td>Oper\u00ada\u00adtions to be com\u00adplet\u00aded in giv\u00aden spot<\/td><\/tr><tr><td>operations.operation_order<\/td><td>Int<\/td><td>1<\/td><td>Yes<\/td><td>Order\u00ading of load\u00ading and unload\u00ading oper\u00ada\u00adtions at a giv\u00aden spot \u2014 first oper\u00ada\u00adtion always is 1<\/td><\/tr><tr><td>operations.loads<\/td><td>Object<\/td><td><\/td><td>No<\/td><td>Array of loads to be loaded or unloaded dur\u00ading oper\u00ada\u00adtion<\/td><\/tr><tr><td>operations.loads.load_id<\/td><td>String<\/td><td>5ff7201734799<\/td><td>No<\/td><td>Ref\u00ader\u00adence to a pre\u00advi\u00adous\u00adly defined load (see <a href=\"https:\/\/www.trans.eu\/api\/objects\/object-loads\/\" target=\"_blank\" rel=\"noopener\" title>Object loads<\/a>)<\/td><\/tr><tr><td>operations.loads.weight<\/td><td>Int<\/td><td>7<\/td><td>No<\/td><td>Weight of load to be loaded or unloaded in oper\u00ada\u00adtion<\/td><\/tr><tr><td>operations.operation_time<\/td><td>Int<\/td><td>60<\/td><td>No<\/td><td>Time, in min\u00adutes, to per\u00adform the oper\u00ada\u00adtion at the point. This option is only avail\u00adable for the Dock Sched\u00aduler and ware\u00adhouse spots.<\/td><\/tr><tr><td>operations.timespans<\/td><td>Object<\/td><td><\/td><td>Yes<\/td><td>Times\u00adpan for select\u00aded oper\u00ada\u00adtions<\/td><\/tr><tr><td>operations.timespans.begin<\/td><td>Time\u00adstamp<\/td><td>\u201c2026\u201302\u201316T14:00:00+01:00\u201d<\/td><td>Yes<\/td><td>Begin\u00adning of time slot for load\u00ading or unload\u00ading oper\u00ada\u00adtion giv\u00aden in publisher\u2019s time zone \u2014 must be greater or equal today<\/td><\/tr><tr><td>operations.timespans.begin_local<\/td><td>Time\u00adstamp<\/td><td>\u201c2026\u201302\u201316T13:00:00+00:00\u201d<\/td><td>only response<\/td><td>Begin\u00adning of time slot for load\u00ading or unload\u00ading oper\u00ada\u00adtion giv\u00aden in the local time zone of the spot<\/td><\/tr><tr><td>operations.timespans.end<\/td><td>Time\u00adstamp<\/td><td>\u201c2026\u201302\u201316T14:00:00+01:00\u201d<\/td><td>Yes<\/td><td>End of time slot for load\u00ading or unload\u00ading oper\u00ada\u00adtion giv\u00aden in publisher\u2019s time zone \u2014 must be greater than timespans.begin<\/td><\/tr><tr><td>operations.timespans.end_local<\/td><td>Time\u00adstamp<\/td><td>\u201c2026\u201302\u201316T13:00:00+00:00\u201d<\/td><td>only response<\/td><td>End of time slot for load\u00ading or unload\u00ading oper\u00ada\u00adtion giv\u00aden in the local time zone of the spot<\/td><\/tr><tr><td>operations.timespans.timezone<\/td><td>String<\/td><td>\u201cEurope\/London\u201d<\/td><td>only response<\/td><td>Local time\u00adzone of the spot<\/td><\/tr><tr><td>operations.type<\/td><td>String<\/td><td>\u201cload\u00ading\u201d<\/td><td>Yes<\/td><td>Accept\u00adable val\u00adues: <code>loading<\/code>, <code>unloading<\/code>, <code>customs_clearance<\/code>. <br>The first place on the route required <code>loading <\/code>oper\u00ada\u00adtion, the last place required <code>unloading <\/code>oper\u00ada\u00adtion.<\/td><\/tr><tr><td>place<\/td><td>Object<\/td><td><\/td><td>Yes<\/td><td>Infor\u00adma\u00adtion relat\u00aded to sin\u00adgle place on freight\u2019s route<\/td><\/tr><tr><td>place.address<\/td><td>Object<\/td><td><\/td><td>Yes<\/td><td>Address of the select\u00aded point<\/td><\/tr><tr><td>place.address.country<\/td><td>String<\/td><td>PL<\/td><td>Yes<\/td><td>Coun\u00adtry using ISO val\u00adues (<a href=\"https:\/\/www.trans.eu\/api\/general-information\/allowed-values#country\" target=\"_blank\" rel=\"noopener\" title>see dic\u00adtio\u00adnary<\/a>)<\/td><\/tr><tr><td>place.address.description<\/td><td>String<\/td><td>head office<\/td><td>No<\/td><td>Address descrip\u00adtion<\/td><\/tr><tr><td>place.address.locality<\/td><td>String<\/td><td>Wroc\u0142aw<\/td><td>Yes<\/td><td>City name<\/td><\/tr><tr><td>place.address.number<\/td><td>String<\/td><td>12<\/td><td>No<\/td><td>Prop\u00ader\u00adty num\u00adber<\/td><\/tr><tr><td>place.address.postal_code<\/td><td>String<\/td><td>50\u2013900<\/td><td>Yes<\/td><td>Postal code<\/td><\/tr><tr><td>place.address.street<\/td><td>String<\/td><td>Trans\u00adportowa<\/td><td>No<\/td><td>Street name<\/td><\/tr><tr><td>place.coordinates<\/td><td>Object<\/td><td><\/td><td>No<\/td><td>Lon\u00adgi\u00adtude and lat\u00adi\u00adtude for select\u00aded point<\/td><\/tr><tr><td>place.coordinates.latitude<\/td><td>Float<\/td><td>53.35801<\/td><td>No<\/td><td>Lat\u00adi\u00adtude of the point along the freight route<\/td><\/tr><tr><td>place.coordinates.longitude<\/td><td>Float<\/td><td>-2.16539<\/td><td>No<\/td><td>Lon\u00adgi\u00adtude of the point along the freight route<\/td><\/tr><tr><td>spot_order<\/td><td>Int<\/td><td>1<\/td><td>Yes<\/td><td>Order\u00ading of spot places \u2014 first spot always is 1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\" id=\"requestbody\">\n<h6 class=\"wp-block-heading\" style=\"font-style:normal;font-weight:700\">Example Object Body<\/h6>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:75%\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>\"spots\": [\n        {\n            \"description\": null,\n            \"name\": null,\n            \"operations\": [\n                {\n                    \"loads\": [],\n                    \"operation_order\": 1,\n                    \"operation_time\": null,\n                    \"timespans\": {\n                        \"begin\": \"2026-01-02T13:04:18+01:00\",\n                        \"begin_local\": \"2026-01-02T13:04:18+01:00\",\n                        \"end\": \"2026-01-02T15:04:18+01:00\",\n                        \"end_local\": \"2026-01-02T15:04:18+01:00\",\n                        \"timezone\": \"Europe\/Warsaw\"\n                    },\n                    \"type\": \"loading\"\n                }\n            ],\n            \"place\": {\n                \"address\": {\n                    \"country\": \"pl\",\n                    \"description\": null,\n                    \"locality\": \"Wroc\u0142aw\",\n                    \"number\": \"2-4\",\n                    \"postal_code\": \"53-146\",\n                    \"street\": \"Rac\u0142awicka\"\n                },\n                \"coordinates\": {\n                    \"latitude\": 51.0825872,\n                    \"longitude\": 17.0038841\n                }\n            },\n            \"spot_order\": 1\n        },\n        {\n            \"description\": null,\n            \"name\": null,\n            \"operations\": [\n                {\n                    \"loads\": [],\n                    \"operation_order\": 1,\n                    \"operation_time\": null,\n                    \"timespans\": {\n                        \"begin\": \"2026-01-03T13:04:18+01:00\",\n                        \"begin_local\": \"2026-01-03T13:04:18+01:00\",\n                        \"end\": \"2026-01-03T15:04:18+01:00\",\n                        \"end_local\": \"2026-01-03T15:04:18+01:00\",\n                        \"timezone\": \"Europe\/Berlin\"\n                    },\n                    \"type\": \"customs_clearance\"\n                }\n            ],\n            \"place\": {\n                \"address\": {\n                    \"country\": \"de\",\n                    \"description\": null,\n                    \"locality\": \"Munich\",\n                    \"number\": null,\n                    \"postal_code\": \"80331\",\n                    \"street\": null\n                },\n                \"coordinates\": {\n                    \"latitude\": 48.135612857,\n                    \"longitude\": 11.573308153\n                }\n            },\n            \"spot_order\": 2\n        },\n        {\n            \"description\": null,\n            \"name\": null,\n            \"operations\": [\n                {\n                    \"loads\": [],\n                    \"operation_order\": 1,\n                    \"operation_time\": null,\n                    \"timespans\": {\n                        \"begin\": \"2026-01-05T13:04:18+01:00\",\n                        \"begin_local\": \"2026-01-05T13:04:18+01:00\",\n                        \"end\": \"2026-01-05T15:04:18+01:00\",\n                        \"end_local\": \"2026-01-05T15:04:18+01:00\",\n                        \"timezone\": \"Europe\/San_Marino\"\n                    },\n                    \"type\": \"unloading\"\n                }\n            ],\n           \"place\": {\n                \"address\": {\n                    \"country\": \"it\",\n                    \"description\": null,\n                    \"locality\": \"Milan\",\n                    \"number\": null,\n                    \"postal_code\": \"20097\",\n                    \"street\": null\n                },\n                \"coordinates\": {\n                    \"latitude\": 45.397205283,\n                    \"longitude\": 9.21659417\n                }\n            },\n            \"spot_order\": 3\n        }\n    ],<\/code><\/pre><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Col\u00adlec\u00adtion of freight spots \u2013 at least one load\u00ading and one unload\u00ading is required.<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[137],"tags":[],"class_list":["post-5667","post","type-post","status-publish","format-standard","hentry","category-objects"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":5667},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=5667"}],"version-history":[{"count":9,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5667\/revisions"}],"predecessor-version":[{"id":6132,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5667\/revisions\/6132"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=5667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=5667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=5667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}