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)

Overload

public LatLng(double latitude, double longtitude)

Properties

NameTypeSummary
readonly Latitudedouble
-
readonly Longitudedouble
-

Methods

NameTypeSummary
AddLatLng
@param bearing Bearing in degrees, clockwise from north
@param distance Distance travelled in meters
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.
@returns Initial bearing in degrees
Distancedouble
Calculates "as-the-crow-flies" distance between points using the Haversine formula.
@returns Distance between points in meters.
Equalsbool
-
GetHashCodeint
-
ToDegreesLatLng
-
ToRadianLatLng
-
ToStringstring
-

Operators

NameTypeSummary
static !=bool
-
static ==bool
-

Relationships

implements: System.IEquatable