NOTICE: Google Maps Platform gaming services is deprecated as of October 18, 2021. Current users will have continued access until December 31, 2022. During this time, we will continue to provide support and fixes to major bugs and outages. See the Gaming Services Transition Guide for resources to help you plan the next steps for your projects.
Stay organized with collections Save and categorize content based on your preferences.

Google.Maps.Feature.SegmentMetadata

A Unity-independent representation of immutable properties of a 2D path. For example, of a road.

Summary

Inheritance

Inherits from: Google.Maps.Feature.MapFeatureMetadata

Constructors and Destructors

SegmentMetadata(string placeId, string name, UsageType usage, bool isPrivate)
The SegmentMetadata class constructor.

Public types

UsageType{
  Unspecified,
  Road,
  LocalRoad,
  ArterialRoad,
  Highway,
  ControlledAccessHighway,
  Footpath,
  Rail,
  Ferry
}
enum
A set of values that specify how a Segment is used.

Public attributes

IsPrivate
readonly bool
Indicates whether the segment is marked as private. E.g., a road that has signage discouraging or prohibiting use by the general public such as signs that say "Private", or "No trespassing."
Usage
readonly UsageType
Specifies the way in which the Segment is used.

Public types

UsageType

 UsageType

A set of values that specify how a Segment is used.

Properties
ArterialRoad

A high-capacity urban road. Delivers traffic from collector roads to highways.

ControlledAccessHighway

A highway with grade-separated crossings that is accessed exclusively by ramps. These are usually called "freeways" or "motorways".

Ferry

A route over water that is part of the road network, but that is travelled by car-carrying vessels.

Footpath

A pedestrian way, walking trail, or nature trail. These thoroughfares are intended for use solely by pedestrians, and not for other forms of traffic like motorized vehicles, cycles, or horses.

Highway

Limited access freeways, state highways, motorways, and toll roads.

LocalRoad

Roads that have the lowest speed limit, that carry low volumes of traffic. In some areas, local roads are unpaved.

Rail

A railroad.

Road

A thoroughfare intended for use by motor vehicles.

Unspecified

The usage type is unspecified.

Public attributes

IsPrivate

readonly bool IsPrivate

Indicates whether the segment is marked as private. E.g., a road that has signage discouraging or prohibiting use by the general public such as signs that say "Private", or "No trespassing."

Usage

readonly UsageType Usage

Specifies the way in which the Segment is used.

Public functions

SegmentMetadata

 SegmentMetadata(
  string placeId,
  string name,
  UsageType usage,
  bool isPrivate
)

The SegmentMetadata class constructor.

Details
Parameters
placeId
The Segment's Place ID.
name
The name of this feature, used to name generated Unity objects.
usage
The way in which the Segment is used.
isPrivate
Indicates whether the segment is a private road.