LatLng()
LatLng class is used to define a geographic point which contains a latitutude and a longitude
Parameter | Type | Description |
---|---|---|
lat | Number | The latitude |
lng | Number | The longitude |
LatLng's constructor
Converts the two given parameters to a LatLng object
Converts a LatLng instance to a string.
Ex.: 'LatLng(43.15,22.17)'
Returns a copy of the current instance
Checks if the current instance's values is equal to another's
Returns a copy of the current instance with the lat
and lng
values rounded to nearest integer
Returns an array consisting of lat
and lng
fields of the LatLng object. Default: [lat
, lng
]
LatLng class is used to define a geographic point which contains a latitutude and a longitude
Parameter | Type | Description |
---|---|---|
lat | Number | The latitude |
lng | Number | The longitude |
Converts the two given parameters to a LatLng object
Parameter | Type | Description |
---|---|---|
p1 | LatLng | Array | Number | The first parameter |
p2 | Number | If p1 is a number, p2 will be used to convert to a LatLng object |
Converts a LatLng instance to a string.
Ex.: 'LatLng(43.15,22.17)'
Returns a copy of the current instance
Checks if the current instance's values is equal to another's
Parameter | Type | Description |
---|---|---|
other | LatLng | The other instance |
true
, the instances' values are equal
Returns a copy of the current instance with the lat
and lng
values rounded to nearest integer