class Google::Apis::VectortileV1::FeatureTile

A tile containing information about the map features located in the region it covers.

Attributes

coordinates[RW]

Global tile coordinates. Global tile coordinates reference a specific tile on the map at a specific zoom level. The origin of this coordinate system is always at the northwest corner of the map, with x values increasing from west to east and y values increasing from north to south. Tiles are indexed using x, y coordinates from that origin. The zoom level containing the entire world in a tile is 0, and it increases as you zoom in. Zoom level n + 1 will contain 4 times as many tiles as zoom level n. The zoom level controls the level of detail of the data that is returned. In particular, this affects the set of feature types returned, their density, and geometry simplification. The exact tile contents may change over time, but care will be taken to keep supporting the most important use cases. For example, zoom level 15 shows roads for orientation and planning in the local neighborhood and zoom level 17 shows buildings to give users on foot a sense of situational awareness. Corresponds to the JSON property `coordinates` @return [Google::Apis::VectortileV1::TileCoordinates]

features[RW]

Features present on this map tile. Corresponds to the JSON property `features` @return [Array<Google::Apis::VectortileV1::Feature>]

name[RW]

Resource name of the tile. The tile resource name is prefixed by its collection ID `tiles/` followed by the resource ID, which encodes the tile's global x and y coordinates and zoom level as `@,,z`. For example, `tiles/@1,2, 3z`. Corresponds to the JSON property `name` @return [String]

providers[RW]

Data providers for the data contained in this tile. Corresponds to the JSON property `providers` @return [Array<Google::Apis::VectortileV1::ProviderInfo>]

status[RW]

Tile response status code to support tile caching. Corresponds to the JSON property `status` @return [String]

version_id[RW]

An opaque value, usually less than 30 characters, that contains version info about this tile and the data that was used to generate it. The client should store this value in its tile cache and pass it back to the API in the client_tile_version_id field of subsequent tile requests in order to enable the API to detect when the new tile would be the same as the one the client already has in its cache. Also see STATUS_OK_DATA_UNCHANGED. Corresponds to the JSON property `versionId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vectortile_v1/classes.rb, line 302
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vectortile_v1/classes.rb, line 307
def update!(**args)
  @coordinates = args[:coordinates] if args.key?(:coordinates)
  @features = args[:features] if args.key?(:features)
  @name = args[:name] if args.key?(:name)
  @providers = args[:providers] if args.key?(:providers)
  @status = args[:status] if args.key?(:status)
  @version_id = args[:version_id] if args.key?(:version_id)
end