Class: Google::Apis::VectortileV1::FeatureTile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vectortile_v1/classes.rb,
generated/google/apis/vectortile_v1/representations.rb,
generated/google/apis/vectortile_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FeatureTile

Returns a new instance of FeatureTile.



302
303
304
# File 'generated/google/apis/vectortile_v1/classes.rb', line 302

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

Instance Attribute Details

#coordinatesGoogle::Apis::VectortileV1::TileCoordinates

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



267
268
269
# File 'generated/google/apis/vectortile_v1/classes.rb', line 267

def coordinates
  @coordinates
end

#featuresArray<Google::Apis::VectortileV1::Feature>

Features present on this map tile. Corresponds to the JSON property features



272
273
274
# File 'generated/google/apis/vectortile_v1/classes.rb', line 272

def features
  @features
end

#nameString

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

Returns:

  • (String)


280
281
282
# File 'generated/google/apis/vectortile_v1/classes.rb', line 280

def name
  @name
end

#providersArray<Google::Apis::VectortileV1::ProviderInfo>

Data providers for the data contained in this tile. Corresponds to the JSON property providers



285
286
287
# File 'generated/google/apis/vectortile_v1/classes.rb', line 285

def providers
  @providers
end

#statusString

Tile response status code to support tile caching. Corresponds to the JSON property status

Returns:

  • (String)


290
291
292
# File 'generated/google/apis/vectortile_v1/classes.rb', line 290

def status
  @status
end

#version_idString

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

Returns:

  • (String)


300
301
302
# File 'generated/google/apis/vectortile_v1/classes.rb', line 300

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
310
311
312
313
314
# File 'generated/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