# GetLocation **Repository Path**: SunshineBrother/GetLocation ## Basic Information - **Project Name**: GetLocation - **Description**: swift4 获取经纬度,地址小工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-15 - **Last Updated**: 2022-02-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GetLocation swift4 获取经纬度,地址小工具 获取坐标 LocationUtil.share.getCurrentPointLocation(isOnce: false) { (loc, errorMsg) in if errorMsg == nil { self.localLabel.text = String(format: "%f,%f", (loc?.coordinate.latitude)!,(loc?.coordinate.longitude)!) } } 获取位置信息 LocationUtil.share.getCurrentLocation(isOnce: false) { (loc, errorMsg) -> () in if errorMsg == nil { self.areaLabel.text = String(format: "%@", (loc?.name)!) }