Method: NMEAPlus::Message::AIS::VDMPayload::MMSIInfo#category
- Defined in:
-
lib/nmea_plus/message/ais/vdm_payload/mmsi_info.rb,
lib/nmea_plus/message/ais/vdm_payload/mmsi_info.rb
The MMSI category as defined by ITU-R M.585-7
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/nmea_plus/message/ais/vdm_payload/mmsi_info.rb', line 23 def category case id.to_s.rjust(9, '0') # formatted as 9 digit string with leading 0s when /[2-7]......../ then :individual_ship when /00...1.../ then :coast_station when /00...2.../ then :harbor_station when /00...3.../ then :pilot_station when /00...4.../ then :ais_repeater_station when /00......./ then :coast_station when /111...1../ then :sar_aircraft_fixed when /111...5../ then :sar_aircraft_helicopter when /1......../ then :sar_aircraft when /8......../ then :handheld when /98......./ then :auxiliary_craft when /970....../ then :sar_transmitter when /972....../ then :man_overboard when /974....../ then :epirb when /99...1.../ then :aton_physical when /99...6.../ then :aton_virtual when /99......./ then :aton else :unknown_mmsi_category end end |