https://github.com/kiliankoe/gausskrueger
🌐 Convert GK4 coordinates to WGS84, and vice versa
https://github.com/kiliankoe/gausskrueger
coordinates gauss-krueger wgs84
Last synced: about 1 month ago
JSON representation
🌐 Convert GK4 coordinates to WGS84, and vice versa
- Host: GitHub
- URL: https://github.com/kiliankoe/gausskrueger
- Owner: kiliankoe
- License: mit
- Created: 2017-02-23T20:27:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T15:30:43.000Z (over 7 years ago)
- Last Synced: 2025-03-13T18:52:17.077Z (2 months ago)
- Topics: coordinates, gauss-krueger, wgs84
- Language: Swift
- Size: 43.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌐 GaussKrueger
[](https://travis-ci.org/kiliankoe/gausskrueger)
[](http://cocoapods.org/pods/gausskrueger)
[](https://codecov.io/gh/kiliankoe/gausskrueger)Swift library for converting GK4-coordinates into WGS84 latitude and longitude, and vice versa.
## Usage
```swift
import GaussKruegerlet coord = WGSCoordinate(latitude: 52.502133988116455, longitude: 13.342517405215336)
let gk = coord.asGK// ---
let gk = GKCoordinate(x: 4591270, y: 5819620)
let wgs = gk.asWGS
```## Installation
gausskrueger is available through Cocoapods, Carthage/Punic and Swift Package Manager, take your pick.
```swift
// Cocoapods
pod 'gausskrueger'// Carthage
github "kiliankoe/gausskrueger"// Swift Package Manager
.Package(url: "https://github.com/kiliankoe/gausskrueger", majorVersion: 0)
```## Credits
This is basically a clone of [juliuste/gauss-krueger](https://github.com/juliuste/gauss-krueger) (which in turn seems to be from [here](http://www.heimeier-spielmann.de/kt/javascripts.html)) with a few modifications to make it valid Swift.