* $vectortileService = new Google\Service\SemanticTile(...); * $terraintiles = $vectortileService->terraintiles; * */ class Terraintiles extends \Google\Service\Resource { /** * Gets a terrain tile by its tile resource name. (terraintiles.get) * * @param string $name Required. Resource name of the tile. The tile resource * name is prefixed by its collection ID `terraintiles/` followed by the * resource ID, which encodes the tile's global x and y coordinates and zoom * level as `@,,z`. For example, `terraintiles/@1,2,3z`. * @param array $optParams Optional parameters. * * @opt_param int altitudePrecisionCentimeters The precision of terrain * altitudes in centimeters. Possible values: between 1 (cm level precision) and * 1,000,000 (10-kilometer level precision). * @opt_param string clientInfo.apiClient API client name and version. For * example, the SDK calling the API. The exact format is up to the client. * @opt_param string clientInfo.applicationId Application ID, such as the * package name on Android and the bundle identifier on iOS platforms. * @opt_param string clientInfo.applicationVersion Application version number, * such as "1.2.3". The exact format is application-dependent. * @opt_param string clientInfo.deviceModel Device model as reported by the * device. The exact format is platform-dependent. * @opt_param string clientInfo.operatingSystem Operating system name and * version as reported by the OS. For example, "Mac OS X 10.10.4". The exact * format is platform-dependent. * @opt_param string clientInfo.platform Platform where the application is * running. * @opt_param string clientInfo.userId Required. A client-generated user ID. The * ID should be generated and persisted during the first user session or * whenever a pre-existing ID is not found. The exact format is up to the * client. This must be non-empty in a GetFeatureTileRequest (whether via the * header or GetFeatureTileRequest.client_info). * @opt_param int maxElevationResolutionCells The maximum allowed resolution for * the returned elevation heightmap. Possible values: between 1 and 1024 (and * not less than min_elevation_resolution_cells). Over-sized heightmaps will be * non-uniformly down-sampled such that each edge is no longer than this value. * Non-uniformity is chosen to maximise the amount of preserved data. For * example: Original resolution: 100px (width) * 30px (height) * max_elevation_resolution: 30 New resolution: 30px (width) * 30px (height) * @opt_param int minElevationResolutionCells api-linter: core::0131::request- * unknown-fields=disabled aip.dev/not-precedent: Maintaining existing request * parameter pattern. The minimum allowed resolution for the returned elevation * heightmap. Possible values: between 0 and 1024 (and not more than * max_elevation_resolution_cells). Zero is supported for backward * compatibility. Under-sized heightmaps will be non-uniformly up-sampled such * that each edge is no shorter than this value. Non-uniformity is chosen to * maximise the amount of preserved data. For example: Original resolution: 30px * (width) * 10px (height) min_elevation_resolution: 30 New resolution: 30px * (width) * 30px (height) * @opt_param string terrainFormats Terrain formats that the client understands. * @return TerrainTile */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], TerrainTile::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Terraintiles::class, 'Google_Service_SemanticTile_Resource_Terraintiles');