All Projects → AsyncSwift → AsyncLocationKit

AsyncSwift / AsyncLocationKit

Licence: MIT License
📍async/await CoreLocation

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to AsyncLocationKit

BetterMappable
Better Mappable through Property Wrappers using ObjectMapper
Stars: ✭ 26 (+44.44%)
Mutual labels:  swiftpackage, swiftpackagemanager
SwiftBuilder
SwiftBuilder is a fast way to assign new value to the property of the object.
Stars: ✭ 26 (+44.44%)
Mutual labels:  swiftpackage, swiftpackagemanager
OMJoystick
This is the JoyStick UI library for SwiftUI.
Stars: ✭ 15 (-16.67%)
Mutual labels:  swiftpackage, swiftpackagemanager
arraync
Async Array methods polyfills
Stars: ✭ 16 (-11.11%)
Mutual labels:  async-await
async-postgres
A runtime-independent asynchronus PostgreSQL client
Stars: ✭ 28 (+55.56%)
Mutual labels:  async-await
await-generator
A library to use async/await in PHP using generators.
Stars: ✭ 80 (+344.44%)
Mutual labels:  async-await
swoole-futures
⏳ Futures, Streams & Async/Await for PHP's Swoole asynchronous run-time.
Stars: ✭ 100 (+455.56%)
Mutual labels:  async-await
o.map
Open Street Map app - KaiOS
Stars: ✭ 51 (+183.33%)
Mutual labels:  location
awesome-dotnet-async
A curated list of awesome articles and resources to learning and practicing about async, threading, and channels in .Net platform. 😉
Stars: ✭ 84 (+366.67%)
Mutual labels:  async-await
parse-function
(!! moved to tunnckoCore/opensource multi-package repository !!) 🔱 Parse a function into an object using espree, acorn or babylon parsers. Extensible through Smart Plugins.
Stars: ✭ 37 (+105.56%)
Mutual labels:  async-await
mux-stream
(De)multiplex asynchronous streams
Stars: ✭ 34 (+88.89%)
Mutual labels:  async-await
obws
The obws (obvious) remote control library for OBS
Stars: ✭ 27 (+50%)
Mutual labels:  async-await
kirby-locator
A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 only.
Stars: ✭ 83 (+361.11%)
Mutual labels:  location
jqIpLocation
jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
Stars: ✭ 18 (+0%)
Mutual labels:  location
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+688.89%)
Mutual labels:  location
simple-location
Adds Basic Location Support to Wordpress
Stars: ✭ 26 (+44.44%)
Mutual labels:  location
express-mongoose-es8-rest-api
A Boilerplate for developing Rest api's in Node.js using express with support for ES6,ES7,ES8 ,Mongoose,JWT for authentication,Standardjs for linting
Stars: ✭ 20 (+11.11%)
Mutual labels:  async-await
android-amap-track-collect
这阵子由于项目需要,需要从手机上采集用户的运动轨迹数据,这样的功能大家都见到的很多了,比如咕咚、悦动圈,对跑步运动轨迹数据进行采集,再如,微信运动、钉钉运动,对于每一天你走步进行计数,如果要记录轨迹就离不开的手机定位,如果要记录步数那就离不开陀螺仪(角速度传感器),花了一天多的时间实现了一个定位数据实时采集的功能。
Stars: ✭ 50 (+177.78%)
Mutual labels:  location
lifeline-rs
A dependency injection library for message-based applications
Stars: ✭ 32 (+77.78%)
Mutual labels:  async-await
kbio
Another Async IO Framework based on io_uring
Stars: ✭ 54 (+200%)
Mutual labels:  async-await

AsyncLocationKit

Swift Package Manager Swift Platforms

Wrapper for Apple CoreLocation framework with new Concurency Model. No more delegate patter or completion blocks.

import AsyncLocationKit

let asyncLocationManager = AsyncLocationManager(desiredAccuracy: .bestAccuracy)

Task {
    let permission = await self.asyncLocationManager.requestAuthorizationWhenInUse() //returns CLAuthorizationStatus
}

You can use all methods from Apple CLLocationManager.

Task {
    let coordinate = try await asyncLocationManager.requestLocation() //Request user location once
}

Start monitoring update of user location with AsyncStream.

Task {
    for await locationUpdateEvent in await asyncLocationManager.startUpdatingLocation() {
        switch locationUpdateEvent {
        case .didUpdateLocations(let locations):
            // do something
        case .didFailWith(let error):
            // do something
        case .didPaused, .didResume: 
            break
        }
    }
}

If Task was canceled, Stream finished automaticaly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].