Swift Package Index


Swift 5.0:提供地图经纬度距离计算及在一个圆(以地图上的经纬度坐标为圆心)内随机生成一个点


  • The latest stable release is 0.0.2. Released about 1 year ago.
  • The last commit to master was about 1 year ago.

Swift Version Compatibility

  • 0.0.2 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.0.2 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

GISLib

Swift 5.0:提供地图经纬度距离计算及在一个圆(以地图上的经纬度坐标为圆心)内随机生成一个点

⚠️⚠️⚠️ 
此框架仅适用于对经纬度计算的精度要求不高的需求,如对精度要求很高,应该采用 Vincenty's_formulae 算法。

Requirements(环境准备)

  • Xcode 10.0+
  • Swift 5.0+

GISLib Integration(集成GISLib)

添加依赖到你的Package.swift中:

.package(url: "https://github.com/GG-A/GISLib", from: "0.0.2"),

.package(url: "https://github.com/GG-A/GISLib", .branch("master")),

并且在你的程序或库的target中,添加"GISLib"到你的dependencies中,如:

.target(name: "YourExampleApp", dependencies: ["GISLib"]),

Copyright

Copyright 2019 GG-A, < 2018158885@qq.com, https://github.com/GG-A/GISLib >

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.