标签: ios swift location mapkit
我想在我的应用中添加一项功能,以便始终更新X位置值,如果Y位置值接近X(比方说25 km)通知两个用户。
答案 0 :(得分:0)
var distanceInMeters = X.distanceFromLocation(Y) if distanceInMeter/1000 > 25 { // Notify both users here }