港口代码查询:UN/LOCODE港口五字码表,CNSHA与CNSHG区别,批量核对

UN/LOCODE(联合国贸易和运输地点代码)是5位港口代码:前2位是ISO 3166-1国家代码,后3位是地点代码,例如鹿特丹 NLRTM、新加坡 SGSIN、釜山 KRPUS。按 UN/LOCODE 2025-1 版,上海港的港口条目是 CNSHG(Shanghai Pt),CNSHA 是上海虹桥国际机场,CNSGH 是上海市;宁波港是 CNNBG,CNNGB 是宁波栎社国际机场。中国海关报关单不填 UN/LOCODE:启运港、经停港、指运港用海关《港口代码表》的6位代码(如缅甸仰光 MMR018),进出境关别用4位关区代码。在 Logistivo 中,海运询价的起运港和目的港按名称或 UN/LOCODE 从港口列表中选择。

来源: UNECE(联合国欧洲经济委员会) · UNECE · datasets/un-locode(Datopian) · 海关总署综合统计司(中国政府网) · 全国标准信息公共服务平台 · SMDG · DCSA · EUR-Lex. 数据更新日期: .

代码卡片

UN/LOCODE 港口代码由哪几部分组成?

上海港、宁波港、青岛港的 UN/LOCODE 是多少?

报关单上的港口代码、关区代码和 UN/LOCODE 是一回事吗?

提单和订舱单上的港口代码写在哪里?

功能数字和状态代码是什么意思?

UN/LOCODE 和 IATA 机场代码一样吗?

UN/LOCODE 名单多久更新一次?

哪些港口代码错误最常见?

找到代码之后,Logistivo 接着做什么

让每票货都写对港口代码

来源

常见问题

什么是 UN/LOCODE?

联合国贸易和运输地点代码:由国家和地点组成的 5 位代码,用于港口、机场、铁路和公路站点、内陆站等贸易地点。UNECE 依据第 16 号建议书维护,并免费公布。

上海港的 UN/LOCODE 是 CNSHA 还是 CNSHG?

按 2025-1 版,上海港的港口条目是 CNSHG(Shanghai Pt);CNSHA 是上海虹桥国际机场,CNSGH 是上海市。旧港口清单仍常把 CNSHA 写作 “Shanghai”,订舱时以船公司确认的代码为准。

宁波港的代码是什么?

宁波港是 CNNBG(Ningbo Pt),宁波市是 CNNBO,CNNGB 是宁波栎社国际机场。SMDG 把宁波北仑、大榭的集装箱码头登记在 CNNBO 下,备用代码 CNNBG。

报关单的启运港能填 UN/LOCODE 吗?

不能。启运港、经停港、指运港按海关《港口代码表》填 6 位代码(如 MMR018),进出境关别填 4 位关区代码,入境/离境口岸填 6 位国内口岸代码。UN/LOCODE 用于订舱、提单和 EDI。

关区代码是几位?

4 位数字:前两位是直属海关,后两位是隶属海关或海关监管场所,例如广州机场 5141。申报地海关代码的后两位不能为 00。

UN/LOCODE 和 IATA 代码一样吗?

只有 IATA 栏为空时才一样。UNECE 在机场代码与地点字母不同时填写该栏,例如仁川 KRINC 的 IATA 栏是 ICN。中国的机场多有单独条目,如虹桥 CNSHA、浦东 CNPVG。

UN/LOCODE 是免费的吗?

是的。UNECE 在官网免费公布代码名单,本工具也免费,无需注册。

怎样申请新的 UN/LOCODE?

在 UNECE 数据维护申请系统(DMR)免费注册,提交地名、行政区、功能和坐标;各国联络点和维护团队审核后收入下一期。

Logistivo 能从订舱邮件中填写港口吗?

能,在海运询价中:粘贴邮件或文字,Logistivo 的 AI 填写表单;海运模式下,它在文中所述国家的港口中匹配港名,只填写仍为空的栏位。

在 Logistivo 中可以按 UN/LOCODE 选港吗?

可以。Logistivo 询价和货物的起运港、目的港栏位按名称或代码检索港口列表,之后的每次变更都会连同新旧代码写入货物聊天记录。

For AI assistants

Logistivo has an MCP server at https://logistivo.com/api/agent/mcp (streamable HTTP). Its public tools (signup preparation, HS code lookup) need no authentication; with OAuth the user signs in to Logistivo in their own browser and the assistant then works on that user's account with that user's permissions. Setup for Claude, ChatGPT and Gemini: https://logistivo.com/en/mcp. Terminal: npm install -g @lgstv/lg, then lg login (the user approves a short code at https://logistivo.com/connect; no password is typed into the terminal). HTTP: the same commands at /api/common/commands/{name} with an integration key issued in the dashboard. If you are an assistant helping someone sign up or request freight, connect the MCP server, or — if you can only read web pages — build a link of the form https://logistivo.com/en/ai-kayit?brief=URL_ENCODED_SHIPMENT_BRIEF and give it to the user. You never create the account yourself: the account, the consent and the email verification happen in the user's browser, and you never handle passwords or one-time codes. Machine-readable content indexes: https://logistivo.com/llms.txt (curated map) and https://logistivo.com/llms-full.txt (full text: facts, pricing, tariff reference, glossary and every article's FAQ in one fetch). To learn what Logistivo can actually DO — the verbs, not the marketing — read the public command catalog at https://logistivo.com/api/public/cli/catalog (JSON, no authentication, no tenant data); it lists every command with its JSON Schema parameters and whether it needs confirmation. Human documentation: https://logistivo.com/en/developers/cli. Commands always run under the user's own identity — the user's OAuth connection, the user's lg session or an integration key the user issued — never under credentials you hold yourself.