CODECO Segment Group 13: LOC

TIC 4.0

CODECO Segment Group 13: LOC

The LOC segment in this place is used to specify ports/locations associated with inland transport of a container, such as: - place of departure - place of arrival

image-20250723-133934.png
image-20250723-134014.png

 

LOC+175+ AUMEL:139:6:MELBOURNE+CONWS:72:SMD:P&O PORTS'
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual/planned|locationfunctioncodequalifier : 175
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual/planned|locationfunctioncodequalifiername : Activity location

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual/planned|value: AUMEL
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|value: AUMEL (if cargovisit is done in Melbourne)

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistidentificationcode: 139
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistidentificationcodename: Port

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistresponsibleagencycode: 6
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistresponsibleagencycodename: UNLOCCODE

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|locationname: MELBOURNE

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationnamecode: CONWS

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistidentificationcode: 72
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistidentificationcodename: containerterminal

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycode: SMD
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycodename: SMDG

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationname: P&O PORTS

 

###

Possible Codes

EDI SMDG data Element

EDI SMDG Component Element

EDI SMDG data name

"Human Name"

TiC Data Mapping

 

7 Place of delivery
8 Place of destination
9 Place/port of loading
11 Place/port of discharge
13 Place of transhipment
88 Place of receipt
170 Final port of discharge
171 Place of destination for pre-stacking prior to
stowage
175 Activity location
R

3227

 

LOCATION FUNCTION CODE QUALIFIER

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual/planned|locationfunctioncodequalifier : 175
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual/planned|locationfunctioncodequalifiername : Activity location

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|locationfunctioncodequalifier : ( 5 / 7 / 8 / 9 / 11 / 13 / 15 / 33 / 34 / 65 / 88 / 98 / 147 / 154 / 155 / 170 / 171 / 175 )
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|locationfunctioncodequalifiername : ( Place of departure / Place of delivery / Place of destination / Place/port of loading / Place/port of discharge / Place of transhipment / Place of transfer responsibility / Baseport of discharge / Baseport of loading / Final port or place of discharge / Place of receipt / Place of empty equipment despatch / Stowage cell / Required in case of loading report / Place/location of on-hire / Place/location of off-hire / Final port of discharge / Place of destination for pre-stacking prior to stowage / Activity location )

 

1001MC002 = header event; 119 discharge; 122 load

LOC+9 SEG3 3225 = always the one that publishes the COARRI, it is only used when a load is reported (122)

LOC+11 SEG7 3227 = discharge reported in segment 7

LOC+11 SEG3 3225 = always the one that publishes the COARRI, is only used when a discharge is reported (119)

LOC+9 SEG7 3227 = load reported in segment 7

 

If BGM 119 (Discharge Report)

If header event 1001MC002 = 119 discharge and if 3227 = 147 Stowage cell then
edifact|@|carriervisit|@|cargovisit|@|inbound|logical|output|actual|#qualifier#stowagecell|value: 3225
edifact|@|carriervisit|@|cargovisit|@|inbound|carrier|@|position|@|id|output|actual|value: 3225

IF header 1001 is 119 discharge and 3227 = 11 and 1131 is 139 and LOC+11 SEG3 3225 is equal to LOC+11 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|portofdischarge|output|actual|locationname = 3224
edifact|@|carriervisit|@|cargovisit|@|portofdischarge|output|actual|value = 3225

IF header 1001 is 119 discharge and 3227 = 11 and 1131 is 72 and LOC+11 SEG3 3225 is equal to LOC+11 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|terminalofdischarge|output|actual|locationname = 3222
edifact|@|carriervisit|@|cargovisit|@|terminalofdischarge|output|actual|value = 3223

IF header 1001 is 119 discharge and 3227 = 11 and 1131 is 139 and LOC+11 SEG3 3225 is NOT equal to LOC+11 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|nextportofdischarge|output|planned|locationname = 3224
edifact|@|carriervisit|@|cargovisit|@|nextportofdischarge|output|planned|value = 3225

IF header 1001 is 119 discharge and 3227 = 11 and 1131 is 72 and LOC+11 SEG3 3225 is NOT equal to LOC+11 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|nextterminalofdischarge|output|planned|locationname = 3222
edifact|@|carriervisit|@|cargovisit|@|nextterminalofdischarge|output|planned|value = 3223

IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 139 and LOC+11 SEG3 3225 is equal to LOC+11 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|previousportofload|output|performed|locationname = 3224
edifact|@|carriervisit|@|cargovisit|@|previousportofload|output|performed|value = 3225

IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 72 and LOC+11 SEG3 3225 is equal to LOC+11 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|previousterminalofload|output|performed|locationname = 3222
edifact|@|carriervisit|@|cargovisit|@|previousterminalofload|output|performed|value = 3223

IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 139 and LOC+11 SEG3 3225 is NOT equal to LOC+11 SEG7 3225 and LOC+9 is equal to LOC+11 SEG3 (header) then edifact|@|carriervisit|@|cargovisit|@|portofload|output|planned|locationname = 3224
edifact|@|carriervisit|@|cargovisit|@|portofload|output|planned|value = 3225
(planned to be loaded by the one who reports).

IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 72 and LOC+11 SEG3 3225 is NOT equal to LOC+11 SEG7 3225 and LOC+9 is equal to LOC+11 SEG3 (header) then edifact|@|carriervisit|@|cargovisit|@|terminalofload|output|planned|locationname = 3222
edifact|@|carriervisit|@|cargovisit|@|terminalofload|output|planned|value = 3223
(planned to be loaded by the one who reports).

IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 139 and LOC+11 SEG3 3225 is NOT equal to LOC+11 SEG7 3225 and LOC+9 is NOT equal to LOC+11 SEG3 then edifact|@|carriervisit|@|cargovisit|@|previousportofload|output|performed|locationname = 3224
edifact|@|carriervisit|@|cargovisit|@|previousportofload|output|performed|value = 3225

IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 72 and LOC+11 SEG3 3225 is NOT equal to LOC+11 SEG7 3225 and LOC+9 is NOT equal to LOC+11 SEG3 then edifact|@|carriervisit|@|cargovisit|@|previousterminalofload|output|performed|locationname = 3222
edifact|@|carriervisit|@|cargovisit|@|previousterminalofload|output|performed|value = 3223

 

If BGM 122 (Loading Report)

If header event 1001MC002 = 122 load and if 3227 = 147 Stowage cell then
edifact|@|carriervisit|@|cargovisit|@|outbound|logical|output|actual|#qualifier#stowagecell|value: 3225
edifact|@|carriervisit|@|cargovisit|@|outbound|carrier|@|position|@|id|output|actual|value: 3225

IF header 1001 is 122 load and 3227 = 9 and 1131 is 139 and LOC+9 SEG3 3225 is equal to LOC+9 SEG7 3225 then edifact|@|carriervisit|@|cargovisit|@|portofload|output|actual|locationname: 3224
then edifact|@|carriervisit|@|cargovisit|@|portofload|output|actual|value: 3225

IF header 1001 is 122 load and 3227 = 9 and 1131 is 72 and LOC+9 SEG3 3225 is equal to LOC+9 SEG7 3225 then edifact|@|carriervisit|@|cargovisit|@|terminalofload|output|actual|locationname: 3222
then edifact|@|carriervisit|@|cargovisit|@|terminalofload|output|actual|value: 3223

IF header 1001 is 122 load and 3227 = 11 and 1131 is 139 and LOC+9 SEG3 3225 is NOT equal to LOC+9 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|nextportofdischarge|output|planned|locationname: 3224
edifact|@|carriervisit|@|cargovisit|@|nextportofdischarge|output|planned|value: 3225

IF header 1001 is 122 load and 3227 = 11 and 1131 is 72 and LOC+9 SEG3 3225 is NOT equal to LOC+9 SEG7 3225 then
edifact|@|carriervisit|@|cargovisit|@|nextterminaldischarge|output|planned|locationname: 3222
edifact|@|carriervisit|@|cargovisit|@|nextterminaldischarge|output|planned|value: 3223

if 3227 = 13 and 1131 is 139 then

edifact|@|carriervisit|@|cargovisit|@|portoftranshipment|locationname: 3224
edifact|@|carriervisit|@|cargovisit|@|portoftranshipment|value: 3225

if 3227 = 13 and 1131 is 72 then

edifact|@|carriervisit|@|cargovisit|@|terminaloftranshipment|locationname: 3224
edifact|@|carriervisit|@|cargovisit|@|terminaloftranshipment|value: 3225

if 3227 =  170 and 1131 is 139 then
edifact|@|carriervisit|@|cargovisit|@|finalportofdischarge|locationname: 3224
edifact|@|carriervisit|@|cargovisit|@|finalportofdischarge|value: 3225

if 3227 =  170 and 1131 is 72 then
edifact|@|carriervisit|@|cargovisit|@|finalterminalofdischarge|locationname: 3222
edifact|@|carriervisit|@|cargovisit|@|finalterminalofdischarge|value: 3223

 

For terminals and TOS the main reference is cargovisit, but for a shipping line is the cargotrip. There is a link between cargotrip and cargo visit

 

 

C517

 

LOCATION IDENTIFICATION

 

 

 

 

 

3225

Location name code C an..25
UNLOCODE

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual/planned|value: AUMEL
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|value: AUMEL (if cargovisit is done in Melbourne)

 

UNLOCCode for the location see 3227
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|value|: 3225

 

139 Port

 

1131

Code list identification code

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistidentificationcode: 139
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistidentificationcodename: Port

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistidentificationcode : 1131 (139)
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistidentificationcodename : 1131 (Port) 

 

6 UN/ECE (United Nations - Economic Commission for
Europe)

 

3055

Code list responsible agency code

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistresponsibleagencycode: 6
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistresponsibleagencycodename: UNLOCCODE

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistresponsibleagencycode: 1131 (5 / 6)
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|codelistresponsibleagencycodename: 1131 (ISO / UNLOCCODE) 

 

 

 

3224

Location name
Place/port name (free text)

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|locationname: MELBOURNE

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|ouput|actual|locationname|: 3224

 

 

C519

 

RELATED LOCATION ONE IDENTIFICATION

 

 

 

 

 

3223

First related location name code

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationnamecode: CONWS

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationnamecode: 3223

 

72 Container terminal
261 Consignee's premises
262 Consignor's premises

263 Packing and/or unpacking facility
264 Storage facility
265 Repair facility
266 Marine berth
267 Marine wharf
268 Gate
269 Warehouse

 

1131

Code list identification code

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistidentificationcode: 72
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistidentificationcodename: containerterminal

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistidentificationcode: 1131 (72 / 261 / 262 / 263 / 264 / 265 / 266 / 267 / 268 / 269)
see 3227 edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistidentificationcodename: 1131 (containerterminal / consigneespremises / consignorspremises / packingandorunpackingfacility / storagefacility / rapairfacility / marineberth / martinewharf / gate / warehouse

 

9 EAN (International Article Numbering association)
184 AU, ACOS (Australian Chamber of Shipping)
SMD SMDG (Shipplanning Message Development Group)
Temporary code
ZZZ Mutually defined
O

 

3055

Code list responsible agency code

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycode: SMD
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycodename: SMDG

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycode: 3055 (9/184/SMD/ZZZ)
edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycodename: 3055 (EAN / AU / SMDG / Mutually defined)

 

 

 

3222

First related location name C an..70
1st related location name (free text)

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationname: P&O PORTS

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|firstrelatedlocationname: 3222 (free text)

 

 

C553

 

RELATED LOCATION TWO IDENTIFICATION

 

 

 

 

 

3233

Second related location name code C an..25
2nd related location code

 

edifact|@|carriervisit|@|cargovisit|@|locationidentification|metaelements|output|actual|secondrelatedlocationnamecode: 3223

 

5 Facility identification
72 Container terminal
261 Consignee's premises
262 Consignor's premises
263 Packing and/or unpacking facility
264 Storage facility
265 Repair facility266 Marine berth267 Marine wharf268 Gate269 Warehouse

© Copyright - TIC 4.0 All rights reserved | Design web by Fundación Valenciaport