https://github.com/remirobert/locationkit
Location wrapper around CoreLocation in swift.
https://github.com/remirobert/locationkit
Last synced: about 1 year ago
JSON representation
Location wrapper around CoreLocation in swift.
- Host: GitHub
- URL: https://github.com/remirobert/locationkit
- Owner: remirobert
- License: mit
- Created: 2015-08-12T12:53:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-13T08:54:02.000Z (almost 11 years ago)
- Last Synced: 2025-04-19T14:11:26.808Z (about 1 year ago)
- Language: Swift
- Size: 160 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 [](https://github.com/Carthage/Carthage)
LocationKit is a wrapper of CoreLocation.
The point is to ease the API, and use of CoreLocation.
Written in swift.
**In development don't use it right now**
## Requirements
* iOS 8
* Swift 1.2
## Installation
#### [CocoaPods](http://cocoapods.org)
comming soon, if you ask for it.
#### [Carthage](https://github.com/Carthage/Carthage)
````bash
github "remirobert/LocationKit"
````
then
```bash
carthage bootstrap
```
## Usage
- Distance:
```Swift
let distanceLocation = LocationKit.distanceFromLocation(location, toLocation: location2)
let distanceLocation = LocationKit.distanceFromCurrentLocationToLocation(location)
```
- Location:
```Swift
//If you need to get the location juste one time, call this method
LocationKit.updateLocationOnce { (location, error) -> Void in
if let location = location {
self.currentLocation = location
}
}
//Start tracking location :
//start update location and get notified, when it's updated
LocationKit.startUpdatingLocation { (location, error) -> Void in
if let location = location {
self.newLocation = location
}
}
```
## Contributors
* [Rémi ROBERT](https://github.com/remirobert), creator. ( ゚ヮ゚)
## License
`LocationKit` is released under an [MIT License][mitLink]. See `LICENSE` for details.
>**Copyright © 2015 Rémi ROBERT.**
*Please provide attribution, it is greatly appreciated.*
[mitLink]:http://opensource.org/licenses/MIT