toArray

Returns the location coordinates as an [lat, lng] array.

ReturnsArray An array representation of the location, e.g. [39, -179]

In this article