Class Location
Encapsulates a location (a geographic point, and an optional heading).
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class Location : IMessage<Location>, IEquatable<Location>, IDeepCloneable<Location>, IBufferMessage, IMessage
Constructors
Location()
Declaration
public Location()
Location(Location)
Declaration
public Location(Location other)
Parameters
Type | Name | Description |
---|---|---|
Location | other |
Properties
HasHeading
Gets whether the "heading" field is set
Declaration
public bool HasHeading { get; }
Property Value
Type | Description |
---|---|
bool |
Heading
The compass heading associated with the direction of the flow of traffic. This value is used to specify the side of the road to use for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, etc.
Declaration
public int Heading { get; set; }
Property Value
Type | Description |
---|---|
int |
LatLng
The waypoint's geographic coordinates.
Declaration
public LatLng LatLng { get; set; }
Property Value
Type | Description |
---|---|
LatLng |