An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# 🌐 GaussKrueger

[![Travis](https://img.shields.io/travis/kiliankoe/gausskrueger.svg?style=flat-square)](https://travis-ci.org/kiliankoe/gausskrueger)
[![Version](https://img.shields.io/cocoapods/v/gausskrueger.svg?style=flat-square)](http://cocoapods.org/pods/gausskrueger)
[![Codecov](https://img.shields.io/codecov/c/github/kiliankoe/gausskrueger.svg?style=flat-square)](https://codecov.io/gh/kiliankoe/gausskrueger)

Swift library for converting GK4-coordinates into WGS84 latitude and longitude, and vice versa.

## Usage

```swift
import GaussKrueger

let 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.