Functions
The following functions are available globally.
-
Determines whether the given coordinate is valid.
Declaration
Swift
public func CLLocationCoordinate2DIsValid(_ coord: CLLocationCoordinate2D) -> BoolParameters
coordThe coordinate to check.
Return Value
trueif the coordinate is valid; otherwise,false. -
Creates a
CLLocationCoordinate2Dobject with the specified latitude and longitude.Declaration
Swift
public func CLLocationCoordinate2DMake(_ latitude: CLLocationDegrees, _ longitude: CLLocationDegrees) -> CLLocationCoordinate2DParameters
latitudeThe latitude in degrees.
longitudeThe longitude in degrees.
Return Value
A new
CLLocationCoordinate2Dobject.
View on GitHub
Functions Reference