Table of Contents

Class NearestRoadsRequest

Namespace
GoogleMapsApi.Entities.Roads.Request
Assembly
GoogleMapsApi.dll

Request for the Roads API Nearest Roads endpoint (GET https://roads.googleapis.com/v1/nearestRoads). Returns the nearest road segment for each of up to MaxPoints arbitrary points. Unlike Snap to Roads, the input points need not be in order or form a traveled path.

public sealed class NearestRoadsRequest : MapsBaseRequest
Inheritance
NearestRoadsRequest
Inherited Members

Remarks

Fields

MaxPoints

Maximum number of points accepted in a single request.

public const int MaxPoints = 100

Field Value

int

Properties

Points

The points to find roads for. Required; 1 to MaxPoints points.

public IEnumerable<Location>? Points { get; set; }

Property Value

IEnumerable<Location>

Methods

GetUri()

Builds the absolute request URI, including scheme, base URL, and serialized query-string parameters.

public override Uri GetUri()

Returns

Uri

The fully composed URI to send to the Google Maps API.