使用苹果地图检查纬度和经度是否在 swift 的圆圈内?

Check if a latitude and longitude is within a circle in swift using apple maps?

我想知道,如果我给出一组圆内的经纬度和半径

使用:distance(from:

let distance = usersLocation.distance(from: circleCenter)

if distance > maxRadius { print("outside of range") }