Google.Maps.Feature.MapFeatureMetadata

A Unity-independent representation of immutable properties of a geographical feature.

Summary

A single MapFeatureMetadata object exists for each geographical feature (PlaceId). Note: Due to chunking, geographical features can be split across multiple MapFeatures and corresponding GameObjects.

Inheritance

Direct Known Subclasses:Google.Maps.Feature.RegionMetadata, Google.Maps.Feature.SegmentMetadata, Google.Maps.Feature.StructureMetadata, Google.Maps.Feature.WaterMetadata

Constructors and Destructors

MapFeatureMetadata(string placeId, string name)
The MapFeatureMetadata class constructor.

Public attributes

Name
readonly string
The name of this MapFeatureMetadata object.
PlaceId
readonly string
An alphanumeric string that uniquely identifies a geographic feature in the Google Places database, and on Google maps. For example, ChIJzRqWFBWuEmsRFiCT1SLJHY8.

Public functions

ToString()
override string
Returns the string representation of this MapFeatureMetadata. object. I.e., the Name and PlaceId.

Public attributes

Name

readonly string Name

The name of this MapFeatureMetadata object.

PlaceId

readonly string PlaceId

An alphanumeric string that uniquely identifies a geographic feature in the Google Places database, and on Google maps. For example, ChIJzRqWFBWuEmsRFiCT1SLJHY8.

You can store and use Place IDs across SDK sessions. For example, you can store the Place ID of a 3D building, and then use it later to suppress the building, or to swap it out with a custom mesh.

For more information, see Place IDs.

Public functions

MapFeatureMetadata

 MapFeatureMetadata(
  string placeId,
  string name
)

The MapFeatureMetadata class constructor.

Details
Parameters
placeId
The map feature's Place ID.
name
The MapFeature's name.

ToString

override string ToString()

Returns the string representation of this MapFeatureMetadata. object. I.e., the Name and PlaceId.

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution