| | |
| | | //离开地点 |
| | | strname = Language.StringByID(StringId.likai); |
| | | } |
| | | //纬度 |
| | | latitude = Convert.ToDouble(input.geo_fence.latitude); |
| | | //经度 |
| | | longitude = Convert.ToDouble(input.geo_fence.longitude); |
| | | //半径 |
| | | r = int.Parse(input.geo_fence.radius); |
| | | if (!string.IsNullOrEmpty(input.geo_fence.latitude) && !string.IsNullOrEmpty(input.geo_fence.longitude)) |
| | | { |
| | | //纬度 |
| | | var latitude1 = Convert.ToDouble(input.geo_fence.latitude); |
| | | //经度 |
| | | var longitude1 = Convert.ToDouble(input.geo_fence.longitude); |
| | | //半径 |
| | | r = int.Parse(input.geo_fence.radius); |
| | | //WGS84坐标转高德坐标 |
| | | LogicMethod.CurrLogicMethod.WGS84_to_GCJ02(longitude1, latitude1, out longitude, out latitude); |
| | | } |
| | | } |
| | | } |
| | | PublicInterface publicInterface = new PublicInterface(); |