#corelocation — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #corelocation, aggregated by home.social.
-
Фильтр Калмана, geohash fog of war и три реджекта Apple: как я собрал GPS-трекер на SwiftUI
В 2024 году Google тихо убил Timeline в Google Maps. Историю местоположений перевели в «локальный режим», который на практике работает через раз - данные теряются, синхронизации нет, а у многих просто исчезли годы накопленной истории. Для меня это было важно: я много езжу на машине и хотел знать простую вещь - сколько конкретная поездка стоит в бензине. Ничего подходящего не нашёл и решил написать сам. Я бэкенд-разработчик, до этого проекта не написал ни строчки на Swift - дальше про то, как за месяц вечерами собрал GPS-трекер с фильтром Калмана, fog of war на geohash и Live Activity.
https://habr.com/ru/articles/1024896/
#iOS #Swift #SwiftUI #GPS #CoreLocation #MapKit #geohash #фильтр_Калмана #Live_Activity #App_Store
-
Фильтр Калмана, geohash fog of war и три реджекта Apple: как я собрал GPS-трекер на SwiftUI
В 2024 году Google тихо убил Timeline в Google Maps. Историю местоположений перевели в «локальный режим», который на практике работает через раз - данные теряются, синхронизации нет, а у многих просто исчезли годы накопленной истории. Для меня это было важно: я много езжу на машине и хотел знать простую вещь - сколько конкретная поездка стоит в бензине. Ничего подходящего не нашёл и решил написать сам. Я бэкенд-разработчик, до этого проекта не написал ни строчки на Swift - дальше про то, как за месяц вечерами собрал GPS-трекер с фильтром Калмана, fog of war на geohash и Live Activity.
https://habr.com/ru/articles/1024896/
#iOS #Swift #SwiftUI #GPS #CoreLocation #MapKit #geohash #фильтр_Калмана #Live_Activity #App_Store
-
Фильтр Калмана, geohash fog of war и три реджекта Apple: как я собрал GPS-трекер на SwiftUI
В 2024 году Google тихо убил Timeline в Google Maps. Историю местоположений перевели в «локальный режим», который на практике работает через раз - данные теряются, синхронизации нет, а у многих просто исчезли годы накопленной истории. Для меня это было важно: я много езжу на машине и хотел знать простую вещь - сколько конкретная поездка стоит в бензине. Ничего подходящего не нашёл и решил написать сам. Я бэкенд-разработчик, до этого проекта не написал ни строчки на Swift - дальше про то, как за месяц вечерами собрал GPS-трекер с фильтром Калмана, fog of war на geohash и Live Activity.
https://habr.com/ru/articles/1024896/
#iOS #Swift #SwiftUI #GPS #CoreLocation #MapKit #geohash #фильтр_Калмана #Live_Activity #App_Store
-
Фильтр Калмана, geohash fog of war и три реджекта Apple: как я собрал GPS-трекер на SwiftUI
В 2024 году Google тихо убил Timeline в Google Maps. Историю местоположений перевели в «локальный режим», который на практике работает через раз - данные теряются, синхронизации нет, а у многих просто исчезли годы накопленной истории. Для меня это было важно: я много езжу на машине и хотел знать простую вещь - сколько конкретная поездка стоит в бензине. Ничего подходящего не нашёл и решил написать сам. Я бэкенд-разработчик, до этого проекта не написал ни строчки на Swift - дальше про то, как за месяц вечерами собрал GPS-трекер с фильтром Калмана, fog of war на geohash и Live Activity.
https://habr.com/ru/articles/1024896/
#iOS #Swift #SwiftUI #GPS #CoreLocation #MapKit #geohash #фильтр_Калмана #Live_Activity #App_Store
-
#Feedback FB20937080 if you work with #CoreLocation and/or #SwiftUI. #rdar
-
For an app supporting scenes, the userInfo dictionary in application(_:didFinishLaunchingWithOptions:) is nil.
In a #SwiftUI app, what’s the correct way then to determine if the app was launched because of a location event (such as a significant location change, a region monitoring/geofencing enter/exit and/or a visit)?
-
A huge thank you to @twostraws and @StewartLynch for their incredible #MapKit and #CoreLocation resources, which were invaluable for implementing and truly understanding these iOS features in #SwiftUI.
-
Now, this is the first version of the app, I have tons of ideas to improve it but I wanted to get it in people's hands and see what people like, what they want, and how it's used 🙂
On the technical side, the app is entirely built in #SwiftUI (what did you expect?), and leverages #CoreLocation, #MapKit, #WeatherKit and a little bit of #SwiftCharts.
This app is the reason I filed and share many feedback related to these frameworks lately 😄
-
I'm beginning to think the #CoreLocation CLMonitor actor is badly designed. You can only have one instance per identifier (which regions are tied to) and you can only listen for async events stream in one place (if you use the stream twice there is corruption of next()). This means you can't use it from SwiftUI where there is no app level .task available. SwiftUI is designed to have multiple .task spread through out and can all create their own async streams.
https://developer.apple.com/documentation/corelocation/clmonitor
-
Found another disappointing Apple #SwiftUI code sample, this time from the #CoreLocation team. They wrapped async/await Task in a Combine ObservableObject instead of just using the .task modifier. They could have also used @.AppStorage instead of UserDefaults.
https://developer.apple.com/documentation/corelocation/adopting_live_updates_in_core_location -
Meet Core Location for spatial computing
#visionOS #CoreLocation #Swift #Programming
https://www.wwdcnotes.com/notes/wwdc23/10146/ -
Here's a gentle reminder that small steps lead to big changes. 🚀 I'm thrilled to announce the initial release of LocationApplication. This tool aims to simplify dealing with location services in Swift. It's built upon AppState, which promotes manageable code and improved testability. If you're working on location-based applications, this could be a handy tool for you.
https://github.com/0xLeif/LocationApplication
#SPM #LocationApp #AppState #Swift #corelocation #iOS #SwiftLang #SwiftUI #OpenSource #macos #mobile
-
With the new CLLocationUpdate API in #CoreLocation, is there a way to set the desiredAccuracy for the location updates?
I currently specify kCLLocationAccuracyNearestTenMeters on my CLLocationManager to only get GPS locations.
https://developer.apple.com/documentation/corelocation/cllocationupdate
-
So many reasons to target iOS 17+ & drop support for older versions:
- MapKit for #SwiftUI (annotations & overlays)
- #CoreLocation now supports live updates using Swift concurrency’s async/await capability
- #SwiftData (no, just a joke, I'll stick to my #CoreData stack for now)