Class SnappedPoint
- Namespace
- GoogleMapsApi.Entities.Roads.Response
- Assembly
- GoogleMapsApi.dll
A point snapped to a road segment. Returned by Snap to Roads, Nearest Roads, and (when a path is supplied) Speed Limits.
public sealed class SnappedPoint
- Inheritance
-
SnappedPoint
- Inherited Members
Properties
Location
The snapped coordinate on the road.
[JsonPropertyName("location")]
public RoadsLocation? Location { get; set; }
Property Value
OriginalIndex
Zero-based index of the corresponding input point. Absent for interpolated points
(Snap to Roads with interpolate=true), which is why this is nullable.
[JsonPropertyName("originalIndex")]
public int? OriginalIndex { get; set; }
Property Value
- int?
PlaceId
Unique identifier of the road segment this point was snapped to.
[JsonPropertyName("placeId")]
public string? PlaceId { get; set; }