Table of Contents

Class SnapToRoadsResponse

Namespace
GoogleMapsApi.Entities.Roads.Response
Assembly
GoogleMapsApi.dll

Response from the Roads API Snap to Roads endpoint.

public sealed class SnapToRoadsResponse : IResponseFor<SnapToRoadsRequest>
Inheritance
SnapToRoadsResponse
Implements
Inherited Members

Properties

SnappedPoints

The points snapped to roads, in order. With interpolate=true this includes interpolated points (whose OriginalIndex is null).

[JsonPropertyName("snappedPoints")]
public IReadOnlyList<SnappedPoint>? SnappedPoints { get; set; }

Property Value

IReadOnlyList<SnappedPoint>

WarningMessage

A user-visible warning, present for example when the input path is too sparse for reliable snapping. null when there is no warning.

[JsonPropertyName("warningMessage")]
public string? WarningMessage { get; set; }

Property Value

string