toGeoLocation

Converts a list of coordinates (assumed to be longitude first, latitude second) returned by the API to a GeoLocation object.

Note that the order of coordinates is swapped in the GeoLocation object, where latitude comes first.

Return

A GeoLocation object with the coordinates reordered (latitude first, longitude second).