GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Yiwow/JZLocationConverter: GCJ-02(火星坐标)、WGS-84、BD-09坐标系转换

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
JZLocationConverter
JZLocationConverter
 
 
Simple
Simple
 
 
.gitignore
.gitignore
 
 
JZLocationConverter.podspec
JZLocationConverter.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

JZLocationConverter

Swift版本(使用边境线坐标,判断是否中国大陆)

Quick start

JZLocationConverter 支持 CocoaPods. 添加下面配置到你的 Podfile:

pod 'JZLocationConverter'

WGS-84世界标准坐标、GCJ-02中国国测局(火星坐标)、BD-09百度坐标系转换 目前有:

WGS-84 -> GCJ-02

此接口当输入坐标为中国大陆以外时,仍旧返回WGS-84坐标

+ (CLLocationCoordinate2D)wgs84ToGcj02:(CLLocationCoordinate2D)location;

GCJ-02 -> WGS-84

此接口有1-2米左右的误差,需要精确的场景慎用

+ (CLLocationCoordinate2D)gcj02ToWgs84:(CLLocationCoordinate2D)location;

WGS-84 -> BD-09

+ (CLLocationCoordinate2D)wgs84ToBd09:(CLLocationCoordinate2D)location;

BD-09 -> WGS-84

+ (CLLocationCoordinate2D)bd09ToWgs84:(CLLocationCoordinate2D)location;

GCJ-02 -> BD-09

+ (CLLocationCoordinate2D)gcj02ToBd09:(CLLocationCoordinate2D)location;

BD-09 -> GCJ-02

此接口有1-2米左右的误差,需要精确的场景慎用

+ (CLLocationCoordinate2D)bd09ToGcj02:(CLLocationCoordinate2D)location;

About

GCJ-02(火星坐标)、WGS-84、BD-09坐标系转换

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.