@michaeljfazio/mids

Maritime Identification Digits Mapping to Country Codes

Usage no npm install needed!

<script type="module">
  import michaeljfazioMids from 'https://cdn.skypack.dev/@michaeljfazio/mids';
</script>

README

Introduction

This project is intended to help map Maritime Identification Digits (MID) to ISO 3166 Country Codes.

Installing

NPM

npm install @michaeljfazio/mids

Yarn

yarn add @michaeljfazio/mids

Usage

const mids = require('mids')
console.log(mids)

What are Maritime Identification Digits?

Maritime identification digits are used by radio communication facilities to identify their home country or base area in Digital Selective Calling (DSC), Automatic Transmitter Identification System (ATIS), and Automatic Identification System (AIS) messages as part of their Maritime Mobile Service Identities (MMSI).

An MID consists of three digits, always starting with a number from 2 to 7 (assigned regionally) which identifies which country the ship is from. Multiple MIDs can be assigned to a country if it is required. A full listing of MIDs assigned to each country is written in Table 1 of ITU Radio Regulations Appendix 43.

For more information visit Wikipedia: Maritime Indentification Digits

Maritime Mobile Service Identity

A Maritime Mobile Service Identity (MMSI) is a series of nine digits which are sent in digital form over a radio frequency channel for unique identification. These identities are formed in such a way that the identity or part thereof can be used by telephone and telex subscribers connected to the general telecommunications network to call ships.

For more information visit Wikipedia: Maritime Mobile Service Identity

Table of Mapped MID Codes

Country Alpha-2 Alpha-3 MID Flag
Albania AL ALB 201
Andorra AD AND 202
Austria AT AUT 203
Azores PT PRT 204
Belgium BE BEL 205
Belarus BY BLR 206
Bulgaria BG BGR 207
Vatican City State VA VAT 208
Cyprus CY CYP 209
Cyprus CY CYP 210
Germany DE DEU 211
Cyprus CY CYP 212
Georgia GE GEO 213
Moldova MD MDA 214
Malta MT MLT 215
Armenia AM ARM 216
Germany DE DEU 218
Denmark DK DNK 219
Denmark DK DNK 220
Spain ES ESP 224
Spain ES ESP 225
France FR FRA 226
France FR FRA 227
Malta MT MLT 229
Finland FI FIN 230
Faroe Islands FO FRO 231
United Kingdom GB GBR 232
United Kingdom GB GBR 233
United Kingdom GB GBR 234
United Kingdom GB GBR 235
Gibraltar GI GIB 236
Greece GR GRC 237
Croatia HR HRV 238
Greece GR GRC 239
Greece GR GRC 240
Greece GR GRC 241
Morocco MA MAR 242
Hungary HU HUN 243
Netherlands NL NLD 244
Netherlands NL NLD 245
Netherlands NL NLD 246
Italy IT ITA 247
Malta MT MLT 248
Malta MT MLT 249
Ireland IE IRL 250
Iceland IS ISL 251
Liechtenstein LI LIE 252
Luxembourg LU LUX 253
Monaco MC MCO 254
Madeira PT PRT 255
Malta MT MLT 256
Norway NO NOR 257
Norway NO NOR 258
Norway NO NOR 259
Poland PL POL 261
Montenegro ME MNE 262
Portugal PT PRT 263
Romania RO ROU 264
Sweden SE SWE 265
Sweden SE SWE 266
Slovak Republic SK SVK 267
San Marino SM SMR 268
Switzerland CH CHE 269
Czech Republic CZ CZE 270
Turkey TR TUR 271
Ukraine UA UKR 272
Russia RU RUS 273
Macedonia MK MKD 274
Latvia LV LVA 275
Estonia EE EST 276
Lithuania LT LTU 277
Slovenia SI SVN 278
Serbia RS SRB 279
Anguilla AI AIA 301
Alaska US USA 303
Antigua and Barbuda AG ATG 304
Antigua and Barbuda AG ATG 305
Antilles CW CUW 306
Aruba AW ABW 307
Bahamas BS BHS 308
Bahamas BS BHS 309
Bermuda BM BMU 310
Bahamas BS BMU 311
Belize BZ BLZ 312
Barbados BB BRB 314
Canada CA CAN 316
Cayman Islands KY CYM 319
Costa Rica CR CRI 321
Cuba CU CUB 323
Dominica DM DMA 325
Dominican Republic DO DOM 327
Guadeloupe GP GLP 329
Grenada GD GRD 330
Greenland GL GRL 331
Guatemala GT GTM 332
Honduras HN HND 335
Haiti HT HTI 336
United States of America US USA 338
Jamaica JM JAM 339
Saint Kitts and Nevis KN KNA 341
Saint Lucia LC LCA 343
Mexico MX MEX 345
Martinique MQ MTQ 347
Montserrat MS MSR 348
Nicaragua NI NIC 350
Panama PA PAN 351
Panama PA PAN 352
Panama PA PAN 353
Panama PA PAN 354
Puerto Rico PR PRI 358
El Salvador SV SLV 359
Saint Pierre and Miquelon PM SPM 361
Trinidad and Tobago TT TTO 362
Turks and Caicos Islands TC TCA 364
United States of America US USA 366
United States of America US USA 367
United States of America US USA 368
United States of America US USA 369
Panama PA PAN 370
Panama PA PAN 371
Panama PA PAN 372
Panama PA PAN 373
Saint Vincent and the Grenadines VC VCT 375
Saint Vincent and the Grenadines VC VCT 376
Saint Vincent and the Grenadines VC VCT 377
British Virgin Islands VG VGB 378
United States Virgin Islands VI VIR 379
Afghanistan AF AFG 401
Saudi Arabia SA SAU 403
Bangladesh BD BGD 405
Bahrain BH BHR 408
Bhutan BT BTN 410
China CN CHN 412
China CN CHN 413
China CN CHN 414
Taiwan TW TWN 416
Sri Lanka LK LKA 417
India IN IND 419
Iran IR IRN 422
Azerbaijan AZ AZE 423
Iraq IQ IRQ 425
Israel IL ISR 428
Japan JP JPN 431
Japan JP JPN 432
Turkmenistan TM TKM 434
Kazakhstan KZ KAZ 436
Uzbekistan UZ UZB 437
Jordan JO JOR 438
Korea KR KOR 440
Korea KR KOR 441
State of Palestine PS PSE 443
Democratic People's Republic of Korea KP PRK 445
Kuwait KW KWT 447
Lebanon LB LBN 450
Kyrgyz Republic KG KGZ 451
Macao MO MAC 453
Maldives MV MDV 455
Mongolia MN MNG 457
Nepal NP NPL 459
Oman OM OMN 461
Pakistan PK PAK 463
Qatar (State of) QA QAT 466
Syrian Arab Republic SY SYR 468
United Arab Emirates AE ARE 470
Tajikistan TJ TJK 472
Yemen YE YEM 473
Yemen YE YEM 475
Hong Kong HK HKG 477
Bosnia and Herzegovina BA BIH 478
Adelie Land FR FRA 501
Australia AU AUS 503
Myanmar MM MMR 506
Brunei Darussalam BN BRN 508
Micronesia FM FSM 510
Palau PW PLW 511
New Zealand NZ NZL 512
Cambodia KH KHM 514
Cambodia KH KHM 515
Christmas Island CX CXR 516
Cook Islands CK COK 518
Fiji FJ FJI 520
Cocos (Keeling) Islands CC CCK 523
Indonesia ID IDN 525
Kiribati KI KIR 529
Lao People's Democratic Republic LA LAO 531
Malaysia MY MYS 533
Northern Mariana Islands MP MNP 536
Marshall Islands MH MHL 538
New Caledonia NC NCL 540
Niue NU NIU 542
Nauru NR NRU 544
French Polynesia PF PYF 546
Philippines PH PHL 548
Papua New Guinea PG PNG 553
Pitcairn Island PN PCN 555
Solomon Islands SB SLB 557
American Samoa AS ASM 559
Samoa WS WSM 561
Singapore SG SGP 563
Singapore SG SGP 564
Singapore SG SGP 565
Singapore SG SGP 566
Thailand TH THA 567
Tonga TO TON 570
Tuvalu TV TUV 572
Viet Nam VN VNM 574
Vanuatu VU VUT 576
Vanuatu VU VUT 577
Wallis and Futuna Islands WF WLF 578
South Africa ZA ZAF 601
Angola AO AGO 603
Algeria DZ DZA 605
Saint Paul and Amsterdam Islands FR FRA 607
Ascension Island GB GBR 608
Burundi BI BDI 609
Benin BJ BEN 610
Botswana BW BWA 611
Djibouti DJ DJI 621
Cameroon CM CMR 613
Congo CG COG 615
Comoros KM COM 616
Cabo Verde CV CPV 617
Crozet Archipelago FR FRA 618
Ivory Coast CI CIV 619
Comoros KM COM 620
Egypt EG EGY 622
Ethiopia ET ETH 624
Eritrea ER ERI 625
Gabonese Republic GA GAB 626
Ghana GH GHA 627
Gambia GM GMB 629
Guinea-Bissau GW GNB 630
Equatorial Guinea GQ GNQ 631
Guinea GN GIN 632
Burkina Faso BF BFA 633
Kenya KE KEN 634
Kerguelen Islands FR FRA 635
Liberia LR LBR 636
Liberia LR LBR 637
South Sudan SS SSD 638
Libya LY LBY 642
Lesotho LS LSO 644
Mauritius MU MUS 645
Madagascar MG MDG 647
Mali ML MLI 649
Mozambique MZ MOZ 650
Mauritania MR MRT 654
Malawi MW MWI 655
Nigeria NG NGA 656
Namibia NA NAM 659
Reunion RE REU 660
Rwanda RW RWA 661
Sudan SD SDN 662
Senegal SN SEN 663
Seychelles SC SYC 664
Saint Helena SH SHN 665
Somali Democratic Republic SO SOM 666
Sierra Leone SL SLE 667
Sao Tome and Principe ST STP 668
Swaziland SZ SWZ 669
Chad TD TCD 670
Togolese Republic TG TGO 671
Tunisian Republic TN TUN 672
Tanzania TZ TZA 674
Uganda UG UGA 675
Democratic Republic of the Congo CD COD 676
Tanzania TZ TZA 677
Zambia ZM ZMB 678
Zimbabwe ZW ZWE 679
Argentine Republic AR ARG 701
Brazil BR BRA 710
Bolivia BO BOL 720
Chile CL CHL 725
Colombia CO COL 730
Ecuador EC ECU 735
Falkland Islands FK FLK 740
Guiana GF GUF 745
Guyana GY GUY 750
Paraguay PY PRY 755
Peru PE PER 760
Suriname SR SUR 765
Uruguay UY URY 770
Venezuela VE VEN 775

Flags courtesy of Steven Skelton @ flag-icon