Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Utilities

LatLng


Declaration​

public struct LatLng : ValueType, IEquatable<LatLng>

Summary​

The LatLng struct represents a Latitude and Longitude pair and provides functionality for comparing LatLng instances with each other.


Constructors​

Constructor​

public LatLng(LocationInfo locationInfo)

Parameters​

NameTypeSummary
locationInfoLocationInfo
-

Overload​

public LatLng(double latitude, double longtitude)

Parameters​

NameTypeSummary
latitudedouble
-
longtitudedouble
-

Properties​

NameTypeSummary
readonly Latitudedouble
-
readonly Longitudedouble
-

Methods​

NameTypeSummary
AddLatLng
-
static Bearingdouble
Calculates the initial bearing (sometimes referred to as forward azimuth) which if
followed in a straight line along a great-circle arc will take you from the l1 to l2 points.
Distancedouble
Calculates "as-the-crow-flies" distance between points using the Haversine formula.
Equalsbool
-
GetHashCodeint
-
ToDegreesLatLng
-
ToRadianLatLng
-
ToStringstring
-

Operators​

NameTypeSummary
static !=bool
-
static ==bool
-

Relationships​

implements: System.IEquatable