GoogleApi.VectorTile.V1.Model.Geometry (google_api_vector_tile v0.5.0) View Source

Represents the geometry of a feature, that is, the shape that it has on the map. The local tile coordinate system has the origin at the north-west (upper-left) corner of the tile, and is scaled to 4096 units across each edge. The height (Z) axis has the same scale factor: an extruded area with a max_z value of 4096 has the same height as the width of the tile that it is on. There is no clipping boundary, so it is possible that some coordinates will lie outside the tile boundaries.

Attributes

  • areas (type: list(GoogleApi.VectorTile.V1.Model.Area.t), default: nil) - The areas present in this geometry.
  • extrudedAreas (type: list(GoogleApi.VectorTile.V1.Model.ExtrudedArea.t), default: nil) - The extruded areas present in this geometry. Not populated if modeled_volumes are included in this geometry unless always_include_building_footprints is set in GetFeatureTileRequest, in which case the client should decide which (extruded areas or modeled volumes) should be used (they should not be rendered together).
  • lines (type: list(GoogleApi.VectorTile.V1.Model.Line.t), default: nil) - The lines present in this geometry.
  • modeledVolumes (type: list(GoogleApi.VectorTile.V1.Model.ModeledVolume.t), default: nil) - The modeled volumes present in this geometry. Not populated unless enable_modeled_volumes has been set in GetFeatureTileRequest.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.VectorTile.V1.Model.Geometry{
  areas: [GoogleApi.VectorTile.V1.Model.Area.t()] | nil,
  extrudedAreas: [GoogleApi.VectorTile.V1.Model.ExtrudedArea.t()] | nil,
  lines: [GoogleApi.VectorTile.V1.Model.Line.t()] | nil,
  modeledVolumes: [GoogleApi.VectorTile.V1.Model.ModeledVolume.t()] | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.