geocodeGranularity property

String? geocodeGranularity
getter/setter pair

Information about the granularity of the geocode.

This can be understood as the semantic meaning of how coarse or fine the geocoded location is. This can differ from the validation_granularity above occasionally. For example, our database might record the existence of an apartment number but do not have a precise location for the apartment within a big apartment complex. In that case, the validation_granularity will be SUB_PREMISE but the geocode_granularity will be PREMISE. Possible string values are:

  • "GRANULARITY_UNSPECIFIED" : Default value. This value is unused.
  • "SUB_PREMISE" : Below-building level result, such as an apartment.
  • "PREMISE" : Building-level result.
  • "PREMISE_PROXIMITY" : A geocode that approximates the building-level location of the address.
  • "BLOCK" : The address or geocode indicates a block. Only used in regions which have block-level addressing, such as Japan.
  • "ROUTE" : The geocode or address is granular to route, such as a street, road, or highway.
  • "OTHER" : All other granularities, which are bucketed together since they are not deliverable.

Implementation

core.String? geocodeGranularity;