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)
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

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

Usage

readonly UsageType Usage

Specifies the way in which the Segment is used.

Public functions

SegmentMetadata

 SegmentMetadata(
  string placeId,
  string name,
  UsageType usage
)

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.

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution