Class: Google::Apis::CivicinfoV2::GeocodingSummary

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/civicinfo_v2/classes.rb,
lib/google/apis/civicinfo_v2/representations.rb,
lib/google/apis/civicinfo_v2/representations.rb

Overview

Detailed summary of the result from geocoding an address

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GeocodingSummary

Returns a new instance of GeocodingSummary.



765
766
767
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 765

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#address_understoodBoolean Also known as: address_understood?

Represents the best estimate of whether or not the input address was fully understood and the address is correctly componentized. Mirrors the same-name field in geostore.staging.AddressLinkupScoringProto. Corresponds to the JSON property addressUnderstood

Returns:

  • (Boolean)


726
727
728
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 726

def address_understood
  @address_understood
end

#feature_idGoogle::Apis::CivicinfoV2::FeatureIdProto

A globally unique identifier associated with each feature. We use 128-bit identifiers so that we have lots of bits available to distinguish between features. The feature id currently consists of a 64-bit "cell id" that ** sometimes** corresponds to the approximate centroid of the feature, plus a 64- bit fingerprint of other identifying information. See more on each respective field in its comments. Feature ids are first assigned when the data is created in MapFacts. After initial creation of the feature, they are immutable. This means that the only properties that you should rely on are that they are unique, and that cell_ids often - but not always - preserve spatial locality. The degree of locality varies as the feature undergoes geometry changes, and should not in general be considered a firm guarantee of the location of any particular feature. In fact, some locationless features have randomized cell IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in the id field of features will be globally unique. Using the fprint allows consumers who don't need the spatial benefit of cell ids to uniquely identify features in a 64-bit address space. This property is not guaranteed for other sources of FeatureProtos. Corresponds to the JSON property featureId



748
749
750
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 748

def feature_id
  @feature_id
end

#feature_typeString

The feature type for the FeatureProto returned by the geocoder Corresponds to the JSON property featureType

Returns:

  • (String)


753
754
755
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 753

def feature_type
  @feature_type
end

#position_precision_metersFloat

Precision of the center point (lat/long) of the geocoded FeatureProto Corresponds to the JSON property positionPrecisionMeters

Returns:

  • (Float)


758
759
760
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 758

def position_precision_meters
  @position_precision_meters
end

#query_stringString

The query sent to the geocoder Corresponds to the JSON property queryString

Returns:

  • (String)


763
764
765
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 763

def query_string
  @query_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



770
771
772
773
774
775
776
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 770

def update!(**args)
  @address_understood = args[:address_understood] if args.key?(:address_understood)
  @feature_id = args[:feature_id] if args.key?(:feature_id)
  @feature_type = args[:feature_type] if args.key?(:feature_type)
  @position_precision_meters = args[:position_precision_meters] if args.key?(:position_precision_meters)
  @query_string = args[:query_string] if args.key?(:query_string)
end