Skip to main content

LocationType

Enum LocationType 

Source
#[non_exhaustive]
pub enum LocationType {
Show 59 variants Aircraft, Airport, Arena, Automobile, Bank, Bar, Bicycle, Bus, BusStation, Cafe, Campground, CareFacility, Classroom, Club, Construction, ConventionCenter, DetachedUnit, FireStation, Government, Hospital, Hotel, Industrial, LandmarkAddress, Library, Motorcycle, MunicipalGarage, Museum, Office, Other, Outdoors, Parking, PhoneBox, PlaceOfWorship, PostOffice, Prison, Public, PublicTransport, Residence, Restaurant, School, ShoppingArea, Stadium, Store, Street, Theater, TollBooth, TownHall, Train, TrainStation, Truck, Underway, Unknown, UtilityBox, Warehouse, WasteTransferFacility, Water, WaterFacility, Watercraft, YouthCamp,
}
Expand description

A location type from the IANA Location Types Registry.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Aircraft

A device used for flight (airplane, helicopter, glider, balloon, etc.).

Source: RFC 4589.

§

Airport

A place from which aircraft operate (airport, heliport).

Source: RFC 4589.

§

Arena

Enclosed area used for sports events.

Source: RFC 4589.

§

Automobile

An automotive vehicle designed for passenger transportation.

Source: RFC 4589.

§

Bank

Business establishment for financial services.

Source: RFC 4589.

§

Bar

A bar or saloon.

Source: RFC 4589.

§

Bicycle

A two-wheeled pedal-propelled vehicle.

Source: RFC 4589.

§

Bus

A large motor vehicle designed to carry passengers.

Source: RFC 4589.

§

BusStation

Terminal that serves bus passengers (bus depot, bus terminal).

Source: RFC 4589.

§

Cafe

A small informal establishment serving refreshments; coffee shop.

Source: RFC 4589.

§

Campground

An area used for camping, often with facilities for tents or RVs.

Source: NH Division of Emergency Services and Communications.

§

CareFacility

A facility providing care services (nursing home, assisted living).

Source: NH Division of Emergency Services and Communications.

§

Classroom

Academic classroom or lecture hall.

Source: RFC 4589.

§

Club

Dance club, nightclub, or discotheque.

Source: RFC 4589.

§

Construction

Construction site.

Source: RFC 4589.

§

ConventionCenter

Convention center or exhibition hall.

Source: RFC 4589.

§

DetachedUnit

A building or housing unit that is not attached to other buildings.

Source: NH Division of Emergency Services and Communications.

§

FireStation

A facility housing firefighting equipment and personnel.

Source: NH Division of Emergency Services and Communications.

§

Government

Government building (legislative, executive, judicial, police, military).

Source: RFC 4589.

§

Hospital

Hospital, hospice, medical clinic, mental institution, or doctor’s office.

Source: RFC 4589.

§

Hotel

Hotel, motel, inn, or other lodging establishment.

Source: RFC 4589.

§

Industrial

Industrial setting (manufacturing floor, power plant).

Source: RFC 4589.

§

LandmarkAddress

A location identified by a landmark or notable address.

Source: NH Division of Emergency Services and Communications.

§

Library

Library or other public place for literary and artistic materials.

Source: RFC 4589.

§

Motorcycle

A two-wheeled automotive vehicle, including a scooter.

Source: RFC 4589.

§

MunicipalGarage

A garage owned or operated by a municipality.

Source: NH Division of Emergency Services and Communications.

§

Museum

A building housing collections of artifacts or specimens.

Source: NENA-STA-004.1.1-2025, NG9-1-1 CLDXF-US.

§

Office

Business setting, such as an office.

Source: RFC 4589.

§

Other

A place without a registered place type representation.

Source: RFC 4589.

§

Outdoors

Outside a building, in the open air (park, city streets).

Source: RFC 4589.

§

Parking

A parking lot or parking garage.

Source: RFC 4589.

§

PhoneBox

A public telephone booth or kiosk.

Source: NH Division of Emergency Services and Communications.

§

PlaceOfWorship

A religious site (church, chapel, mosque, shrine, synagogue, temple).

Source: RFC 4589.

§

PostOffice

A post office or mail facility.

Source: NH Division of Emergency Services and Communications.

§

Prison

Correctional institution (prison, penitentiary, jail, brig).

Source: RFC 4589.

§

Public

Public area (shopping mall, street, park, public building, conveyance).

Source: RFC 4589.

§

PublicTransport

Any form of public transport (aircraft, bus, train, ship).

Source: RFC 4589.

§

Residence

A private or residential setting.

Source: RFC 4589.

§

Restaurant

Restaurant, coffee shop, or other public dining establishment.

Source: RFC 4589.

§

School

School or university property.

Source: RFC 4589.

§

ShoppingArea

Shopping mall or area with stores accessible by common passageways.

Source: RFC 4589.

§

Stadium

Large structure for sports events, including a racetrack.

Source: RFC 4589.

§

Store

Place where merchandise is offered for sale; a shop.

Source: RFC 4589.

§

Street

A public thoroughfare (avenue, street, alley, lane, road, sidewalk).

Source: RFC 4589.

§

Theater

Theater, auditorium, movie theater, or similar presentation facility.

Source: RFC 4589.

§

TollBooth

A booth or station for collecting tolls.

Source: NH Division of Emergency Services and Communications.

§

TownHall

A building housing local government offices.

Source: NH Division of Emergency Services and Communications.

§

Train

Train, monorail, maglev, cable car, or similar conveyance.

Source: RFC 4589.

§

TrainStation

Terminal where trains load or unload passengers or goods.

Source: RFC 4589.

§

Truck

An automotive vehicle for hauling goods rather than people.

Source: RFC 4589.

§

Underway

In a land-, water-, or aircraft that is in motion.

Source: RFC 4589.

§

Unknown

The type of place is unknown.

Source: RFC 4589.

§

UtilityBox

A utility box or cabinet housing utility equipment.

Source: NH Division of Emergency Services and Communications.

§

Warehouse

Place for storing goods (storehouse, self-storage facility).

Source: RFC 4589.

§

WasteTransferFacility

A facility for processing or transferring waste materials.

Source: NH Division of Emergency Services and Communications.

§

Water

In, on, or above bodies of water (ocean, lake, river, canal).

Source: RFC 4589.

§

WaterFacility

A facility for water treatment or distribution.

Source: NH Division of Emergency Services and Communications.

§

Watercraft

A vessel for travel on water (boat, ship).

Source: RFC 4589.

§

YouthCamp

A camp providing programs and activities for youth.

Source: NH Division of Emergency Services and Communications.

Trait Implementations§

Source§

impl Clone for LocationType

Source§

fn clone(&self) -> LocationType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LocationType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LocationType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl FromStr for LocationType

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<LocationType, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for LocationType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for LocationType

Source§

fn cmp(&self, other: &LocationType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LocationType

Source§

fn eq(&self, other: &LocationType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for LocationType

Source§

fn partial_cmp(&self, other: &LocationType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<&str> for LocationType

Source§

type Error = ParseError

The type returned in the event of a conversion error.
Source§

fn try_from(s: &str) -> Result<LocationType, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl Copy for LocationType

Source§

impl Eq for LocationType

Source§

impl StructuralPartialEq for LocationType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.