pub fn region_code_from_string(text: String) -> Result<Vec<u8>, MobileError>Expand description
Read a region code from what someone typed, yielding the two wire octets used everywhere else in the ULCP and mesh surfaces.
Three ASCII letters are a nearest-airport IATA code, 0xXXXX is a
literal code, and anything else is a region name hashed into a
disjoint part of the code space — so “SJC” and “San Jose” are
deliberately different regions, and no name can ever collide with an
airport.