It's the 15th anniversary of Google Maps Platform - Check out the latest news and announcements

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