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.

Google.Maps.Unity.Intersections.RoadLatticeNode

A node in a graph representing the layout of roads in an area. Each node contains a collection of neighbor nodes.

Summary

Properties

Edges
IEnumerable< RoadLatticeEdge >
The collection of outbound edges from this node to its neighbors.
Location
Vector2
Floating-point World-space location of this node.
LocationUID
ulong
An ID derived from the global, real world location of this RoadLatticeNode.
NeighborCount
int
The number of neighboring nodes in the RoadLattice that contains this node.
Neighbors
IEnumerable< RoadLatticeNode >
Neighboring nodes in the RoadLattice that contains this node.

Public functions

EdgeTo(RoadLatticeNode target)
The outbound edge from this node to a target node.
HasEdgeTo(RoadLatticeNode target)
bool
Checks if this node has an edge to target .
ToString()
override string

Properties

Edges

IEnumerable< RoadLatticeEdge > Edges

The collection of outbound edges from this node to its neighbors.

Location

Vector2 Location

Floating-point World-space location of this node.

LocationUID

ulong LocationUID

An ID derived from the global, real world location of this RoadLatticeNode.

This will differ from the LocationUID of any other RoadLatticeNode, unless it occupies the same real world location within the resolution of the underlying map data.

NeighborCount

int NeighborCount

The number of neighboring nodes in the RoadLattice that contains this node.

Neighbors

IEnumerable< RoadLatticeNode > Neighbors

Neighboring nodes in the RoadLattice that contains this node.

Public functions

EdgeTo

RoadLatticeEdge EdgeTo(
  RoadLatticeNode target
)

The outbound edge from this node to a target node.

Details
Parameters
target
Node to retrieve edge to.
Exceptions
ArgumentException
If this node does not have an edge to the provided target node.
Returns
The outbound edge to the target node.

HasEdgeTo

bool HasEdgeTo(
  RoadLatticeNode target
)

Checks if this node has an edge to target .

ToString

override string ToString()