pub struct GeoAddress {
pub address: CommonAddress,
pub latitude: f64,
pub longitude: f64,
}Expand description
The GeoAddress struct defines a common address that has associated geographic coordinates.
Fields§
§address: CommonAddressThe address field holds a CommonAddress struct, which defines the fields of a valid address, following the FGDC standard,
with the inclusion of NENA-required fields for emergency response.
latitude: f64The latitude field represents the latitude of the geographic coordinates for the address.
longitude: f64The longitude field represents the longitude of the geographic coordinates for the address.
Trait Implementations§
Source§impl Address for GeoAddress
impl Address for GeoAddress
Source§fn number_mut(&mut self) -> &mut i64
fn number_mut(&mut self) -> &mut i64
The
number_mut method returns a mutable reference to the address number component.Source§fn number_suffix(&self) -> &Option<String>
fn number_suffix(&self) -> &Option<String>
The
number_suffix method returns the address number suffix component.Source§fn number_suffix_mut(&mut self) -> &mut Option<String>
fn number_suffix_mut(&mut self) -> &mut Option<String>
The
number_suffix_mut method returns a mutable reference to the address number suffix component.Source§fn directional(&self) -> &Option<StreetNamePreDirectional>
fn directional(&self) -> &Option<StreetNamePreDirectional>
The
directional method returns the StreetNamePreDirectional component, if any.Source§fn directional_mut(&mut self) -> &mut Option<StreetNamePreDirectional>
fn directional_mut(&mut self) -> &mut Option<StreetNamePreDirectional>
The
directional method returns a mutable reference to the StreetNamePreDirectional value.Source§fn street_name_pre_modifier(&self) -> &Option<StreetNamePreModifier>
fn street_name_pre_modifier(&self) -> &Option<StreetNamePreModifier>
The
street_name_pre_modifier method returns the street name pre modifier component.Source§fn street_name_pre_modifier_mut(&mut self) -> &mut Option<StreetNamePreModifier>
fn street_name_pre_modifier_mut(&mut self) -> &mut Option<StreetNamePreModifier>
The
street_name_pre_modifier_mut method returns a mutable reference to the street name pre modifier component.Source§fn street_name_pre_type(&self) -> &Option<StreetNamePreType>
fn street_name_pre_type(&self) -> &Option<StreetNamePreType>
The
street_name_pre_type method returns the street name pre type component.Source§fn street_name_pre_type_mut(&mut self) -> &mut Option<StreetNamePreType>
fn street_name_pre_type_mut(&mut self) -> &mut Option<StreetNamePreType>
The
street_name_pre_type_mut method returns a mutable reference to the street name pre type component.Source§fn street_name_separator(&self) -> &Option<StreetSeparator>
fn street_name_separator(&self) -> &Option<StreetSeparator>
The
street_name_separator method returns the separator element component.Source§fn street_name_separator_mut(&mut self) -> &mut Option<StreetSeparator>
fn street_name_separator_mut(&mut self) -> &mut Option<StreetSeparator>
The
street_name_separator_mut method returns a mutable reference to the separator element component.Source§fn street_name(&self) -> &String
fn street_name(&self) -> &String
The
street_name method returns the street name component.Source§fn street_name_mut(&mut self) -> &mut String
fn street_name_mut(&mut self) -> &mut String
The
street_name_mut method returns a mutable reference to the street name component.Source§fn street_type(&self) -> &Option<StreetNamePostType>
fn street_type(&self) -> &Option<StreetNamePostType>
The
street_type method returns the street name post type component.Source§fn street_type_mut(&mut self) -> &mut Option<StreetNamePostType>
fn street_type_mut(&mut self) -> &mut Option<StreetNamePostType>
The
street_type_mut method returns a mutable reference to the street name post type component.Source§fn subaddress_id(&self) -> &Option<String>
fn subaddress_id(&self) -> &Option<String>
The
subaddress_id method returns the subaddress identifier component, if any.Source§fn subaddress_id_mut(&mut self) -> &mut Option<String>
fn subaddress_id_mut(&mut self) -> &mut Option<String>
The
subaddress_id_mut method returns a mutable reference to the vale of the subaddress identifier component.Source§fn subaddress_type(&self) -> &Option<SubaddressType>
fn subaddress_type(&self) -> &Option<SubaddressType>
The
subaddress_type method returns the subaddress type component, if any.Source§fn subaddress_type_mut(&mut self) -> &mut Option<SubaddressType>
fn subaddress_type_mut(&mut self) -> &mut Option<SubaddressType>
The
subaddress_type_mut method returns a mutable reference to the value of the subaddress type component.Source§fn floor(&self) -> &Option<i64>
fn floor(&self) -> &Option<i64>
The
floor method returns the floor identifier corresponding to the Floor field in the
NENA standard, required for emergency response.Source§fn floor_mut(&mut self) -> &mut Option<i64>
fn floor_mut(&mut self) -> &mut Option<i64>
The
floor_mut method returns a mutable reference to the value of the floor identifier.Source§fn building(&self) -> &Option<String>
fn building(&self) -> &Option<String>
The
building method returns the building identifier corresponing to the Building field
in the NENA standard, required for emergency response.Source§fn building_mut(&mut self) -> &mut Option<String>
fn building_mut(&mut self) -> &mut Option<String>
The
building_mut method returns a mutable reference to the value of the building
identifier.Source§fn zip_mut(&mut self) -> &mut i64
fn zip_mut(&mut self) -> &mut i64
The
zip_mut method returns a mutable reference to the value of the zip code component.Source§fn postal_community(&self) -> &String
fn postal_community(&self) -> &String
The
postal_community method returns the postal community component of the address, being
the unincorporated or incorporated municipality name.Source§fn postal_community_mut(&mut self) -> &mut String
fn postal_community_mut(&mut self) -> &mut String
The
postal_community_mut method returns a mutable reference to the value of the postal
community component.Source§fn state_mut(&mut self) -> &mut State
fn state_mut(&mut self) -> &mut State
The
state_mut method returns a mutable reference to the value of the state name
component.Source§fn status(&self) -> &AddressStatus
fn status(&self) -> &AddressStatus
The
status method returns the local status of the address, as determined by the
relevant address authority.Source§fn status_mut(&mut self) -> &mut AddressStatus
fn status_mut(&mut self) -> &mut AddressStatus
The
status_mut method returns a mutable reference to the value of the address status.Source§fn coincident<T: Address>(&self, other: &T) -> AddressMatch
fn coincident<T: Address>(&self, other: &T) -> AddressMatch
An address is coincident when the
other address refers to the same assignment or
location. If the addresses are coincident, but details (such as the floor number or
address status) differ, then the differences are recorded as a vector of type Mismatch.
The results are converted to type AddressMatch.Source§fn label(&self) -> String
fn label(&self) -> String
Returns a String representing the address label, consisting of the complete address number,
complete street name and complete subaddress, used to produce map or mailing labels.
Source§fn complete_street_name(&self, abbreviate: bool) -> String
fn complete_street_name(&self, abbreviate: bool) -> String
The
complete_street_name method returns the complete street name of the address.Source§fn common_street_name(&self) -> String
fn common_street_name(&self) -> String
The
common_street_name method returns the street name, including any premodifier, pretype
and separator elements. Read moreSource§fn complete_address_number(&self) -> String
fn complete_address_number(&self) -> String
The
complete_address_number method returns the address number and address number suffix,
if any, as a String.Source§fn directional_abbreviated(&self) -> Option<String>
fn directional_abbreviated(&self) -> Option<String>
The
pre_directional field represents the street name predirectional component of the
complete street name. This function returns the cloned value of the field.Source§fn standardize(&mut self)
fn standardize(&mut self)
The
standardize method takes county address naming conventions and converts them to city
naming conventions.Source§impl Addresses<GeoAddress> for GeoAddresses
impl Addresses<GeoAddress> for GeoAddresses
Source§fn filter(&self, filter: &str) -> Vec<T>
fn filter(&self, filter: &str) -> Vec<T>
The
filter method returns the subset of addresses that match the filter. Current values
include “duplicate”, which retains addresses that contain a duplicate in the set.Source§fn filter_field(&mut self, filter: &str, field: &str)
fn filter_field(&mut self, filter: &str, field: &str)
The
filter_field method returns the subset of addresses where the field filter is equal
to the value in field.Source§fn contains_street(&self, street: &String) -> bool
fn contains_street(&self, street: &String) -> bool
Compares the complete street name of an address to the value in
street, returning true if
equal.Source§fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>(
&self,
other: &U,
) -> Vec<String>
fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>( &self, other: &U, ) -> Vec<String>
The
orphan_streets method returns the list of complete street names that are contained in
self but are not present in other.Source§fn citify(&mut self)
fn citify(&mut self)
The
citify method takes county address naming conventions and converts them to city
naming conventions.Source§fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>
fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>
The
LexisNexis method produces the LexisNexis table showing dispatch jurisdiction for
address ranges within the City of Grants Pass.Source§fn standardize(&mut self)
fn standardize(&mut self)
The
standardize method takes county address naming conventions and converts them to city
naming conventions.Source§impl Clone for GeoAddress
impl Clone for GeoAddress
Source§fn clone(&self) -> GeoAddress
fn clone(&self) -> GeoAddress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeoAddress
impl Debug for GeoAddress
Source§impl Default for GeoAddress
impl Default for GeoAddress
Source§fn default() -> GeoAddress
fn default() -> GeoAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeoAddress
impl<'de> Deserialize<'de> for GeoAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Address + Geographic + Clone> From<&T> for GeoAddress
impl<T: Address + Geographic + Clone> From<&T> for GeoAddress
Source§impl Geographic for GeoAddress
impl Geographic for GeoAddress
Source§impl IntoBin<GeoAddress> for GeoAddress
impl IntoBin<GeoAddress> for GeoAddress
Source§impl PartialEq for GeoAddress
impl PartialEq for GeoAddress
Source§impl PartialOrd for GeoAddress
impl PartialOrd for GeoAddress
Source§impl Serialize for GeoAddress
impl Serialize for GeoAddress
impl StructuralPartialEq for GeoAddress
Auto Trait Implementations§
impl Freeze for GeoAddress
impl RefUnwindSafe for GeoAddress
impl Send for GeoAddress
impl Sync for GeoAddress
impl Unpin for GeoAddress
impl UnwindSafe for GeoAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more