Functions
The following functions are available globally.
-
Determines whether the given coordinate is valid.
Declaration
Swift
public func CLLocationCoordinate2DIsValid(_ coord: CLLocationCoordinate2D) -> Bool
Parameters
coord
The coordinate to check.
Return Value
true
if the coordinate is valid; otherwise,false
. -
Creates a
CLLocationCoordinate2D
object with the specified latitude and longitude.Declaration
Swift
public func CLLocationCoordinate2DMake(_ latitude: CLLocationDegrees, _ longitude: CLLocationDegrees) -> CLLocationCoordinate2D
Parameters
latitude
The latitude in degrees.
longitude
The longitude in degrees.
Return Value
A new
CLLocationCoordinate2D
object.