class Google::Apis::VectortileV1::Feature
A feature representing a single geographic entity.
Attributes
The localized name of this feature. Currently only returned for roads. Corresponds to the JSON property `displayName` @return [String]
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. Corresponds to the JSON property `geometry` @return [Google::Apis::VectortileV1::Geometry]
Place ID of this feature, suitable for use in Places API details requests. Corresponds to the JSON property `placeId` @return [String]
Relations to other features. Corresponds to the JSON property `relations` @return [Array<Google::Apis::VectortileV1::Relation>]
Extra metadata relating to segments. Corresponds to the JSON property `segmentInfo` @return [Google::Apis::VectortileV1::SegmentInfo]
The type of this feature. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/vectortile_v1/classes.rb, line 232 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vectortile_v1/classes.rb, line 237 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @geometry = args[:geometry] if args.key?(:geometry) @place_id = args[:place_id] if args.key?(:place_id) @relations = args[:relations] if args.key?(:relations) @segment_info = args[:segment_info] if args.key?(:segment_info) @type = args[:type] if args.key?(:type) end