Google.Maps.Coord.LatLng

An immutable representation of a set of geographical coordinates.

Summary

Inheritance

Inherits from: IEquatable< LatLng >, ISerializationCallbackReceiver

Constructors and Destructors

LatLng(double lat, double lng)
The LatLng constructor.

Public attributes

MaxLat = 90
const double
The maximum latitude value (i.e., the North Pole).
MaxLng = 180
const double
The maximum longitude value (i.e., the Antimeridian).
MinLat = -90
const double
The minimum latitude value (i.e., the South Pole).
MinLng = -180
const double
The minimum longitude value (i.e., the Antimeridian).

Properties

Lat
double
The latitude value.
Lng
double
The longitude value.

Public functions

Equals(LatLng other)
bool
Implements the IEquatable{T} interface.
Equals(object obj)
override bool
Overrides the Equals() method.
GetHashCode()
override int
Overrides the GetHashCode() method.
OnAfterDeserialize()
void
OnBeforeSerialize()
void
ToString()
override string
Returns the formatted string representation of this LatLng.

Public attributes

MaxLat

const double Google::Maps::Coord::LatLng::MaxLat = 90

The maximum latitude value (i.e., the North Pole).

MaxLng

const double Google::Maps::Coord::LatLng::MaxLng = 180

The maximum longitude value (i.e., the Antimeridian).

MinLat

const double Google::Maps::Coord::LatLng::MinLat = -90

The minimum latitude value (i.e., the South Pole).

MinLng

const double Google::Maps::Coord::LatLng::MinLng = -180

The minimum longitude value (i.e., the Antimeridian).

Properties

Lat

double Google::Maps::Coord::LatLng::Lat

The latitude value.

Valid values are in the range: [-90, 90]. Values outside this range are clamped (rounded). For example, the value 100 would become 90, and the value -100 would become -90.

Lng

double Google::Maps::Coord::LatLng::Lng

The longitude value.

Valid values are in the closed interval: [-180, 180]. Values outside this range are wrapped. For example, the value -190 would become 170, and the value 190 would become -170. This is because longitudes wrap around the globe. Both -180 and 180 are allowed (they both correspond to the Antimeridian).

Public functions

Equals

bool Google::Maps::Coord::LatLng::Equals(
  LatLng other
)

Implements the IEquatable{T} interface.

Details
Parameters
other
A LatLng object to compare with this one.
Returns
Indicates whether the specified LatLng is equal to this LatLng.

Equals

override bool Google::Maps::Coord::LatLng::Equals(
  object obj
)

Overrides the Equals() method.

GetHashCode

override int Google::Maps::Coord::LatLng::GetHashCode()

Overrides the GetHashCode() method.

LatLng

 Google::Maps::Coord::LatLng::LatLng(
  double lat,
  double lng
)

The LatLng constructor.

OnAfterDeserialize

void Google::Maps::Coord::LatLng::OnAfterDeserialize()

OnBeforeSerialize

void Google::Maps::Coord::LatLng::OnBeforeSerialize()

ToString

override string Google::Maps::Coord::LatLng::ToString()

Returns the formatted string representation of this LatLng.

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution