{"id":13849312,"url":"https://github.com/100grams/CoreLocationUtils","last_synced_at":"2025-07-12T16:31:41.929Z","repository":{"id":1508923,"uuid":"1765547","full_name":"100grams/CoreLocationUtils","owner":"100grams","description":"iOS CoreLocation extensions, simulator and tools","archived":false,"fork":false,"pushed_at":"2013-06-07T08:51:49.000Z","size":125,"stargazers_count":161,"open_issues_count":1,"forks_count":27,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-16T12:10:17.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/100grams.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-18T11:06:06.000Z","updated_at":"2024-09-12T10:19:11.000Z","dependencies_parsed_at":"2022-08-16T13:31:09.657Z","dependency_job_id":null,"html_url":"https://github.com/100grams/CoreLocationUtils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100grams%2FCoreLocationUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100grams%2FCoreLocationUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100grams%2FCoreLocationUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100grams%2FCoreLocationUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/100grams","download_url":"https://codeload.github.com/100grams/CoreLocationUtils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829364,"owners_count":17530663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T19:01:13.784Z","updated_at":"2024-11-22T01:30:46.779Z","avatar_url":"https://github.com/100grams.png","language":"Objective-C","readme":"# Core Location Utilities#\n\nAn Objective-C library with tools and extensions for iOS CoreLocation. \n\n**Update: added support for iOS5 SDK and ARC compatibility**\n\n## Features ##\n\n- Dispatching CoreLocation updates to multiple listeners.\n- Archive/Unarchive location data (play log file) \n- Calculate Direction and distance between locations and routes.\n- Dead Reckoning\n\n\n## Classes ##\n\n### CLLocationDispatch \n\nThis is a central dispatch for distributing location updates to the app. Dispatched locations include: \n\n- CoreLocation updates (location and heading)\n- Location data read from an archive (playing a log file)\n- Location data received from dead-reckoning service. \n\nLocations are dispatched to any listener which registers itself with addListener. In order to receive the update, the listener must respond to CLLocationManagerDelegate protocol methods. \n\n**Serializing location data**\u003cbr/\u003e\nIn addition, CLLocationDispatch provides an API for archiving and unarchiving CLLocation data to a file. This way you can record GPS traces and play them over (e.g. for debugging, or as a \"route demo\").\nTo start reading locations from an archive call \u003ccode\u003estartDemoWithLogFile:startLocationIndex:\u003c/code\u003e method. \n\nYou can extend CLLocationDispatch to read location data from other file formats, (e.g. KML, NMEA) by providing a class which adheres to \u003ccode\u003eHGRouteProvider\u003c/code\u003e protocol.\n\n**Support for Dead-Reckoning**\u003cbr/\u003e\nI've recently extended CLLocationDispatch to dispatch \"soft-locations\", i.e. locations generated by a [dead-reckoning](http://en.wikipedia.org/wiki/Dead_reckoning) engine. For more info see \u003ccode\u003eCLLocationDeadReckoning\u003c/code\u003e below. \n\n\n###  CLLocation(measuring)  \n\nAn extension of \u003ccode\u003eCLLocation\u003c/code\u003e which provides distance and direction calculations between locations and stretches (lines), defining a bounding box from a center coordinate and radius, and validating coordinate values. \n\n###  CLLocation(routeInfo)  \n\nAn extension of \u003ccode\u003eCLLocation\u003c/code\u003e which provides an API to map-match a location on a given route. A route being \u003ccode\u003eNSArray\u003c/code\u003e of \u003ccode\u003eCLLocation\u003c/code\u003e objects. \n\n\u003cpre\u003e\u003ccode\u003e\n- (CLLocationDistance) distanceFromRoute : (NSArray*) locations \n\t\t\t\t\t    nearestNodeFound : (CLLocation**)nearestRouteNode \n\t\t\t\t  nearestLocationOnRoute : (CLLocation**) nearestLocation \n\t\t\t  nodeIndexAfterIntersection : (NSInteger*)nodeIndexAfter;\n\u003c/code\u003e\u003c/pre\u003e\n\n\n### CLLocationDeadReckoning ###\n\nDead Reckoning generates location updates at fixed time intervals, defined by \u003ccode\u003ekDeadReckiningInterval\u003c/code\u003e. Since DR estimates a location based on previous locations, it may result in cumulative errors. CLLocationDeadReckoning therefore constrains DR to a given route, i.e. an NSArray containing CLLocation objects.\n\n- To start CLLocationDeadReckoning, call \u003ccode\u003estartWithRoute:\u003c/code\u003e. You must provide a route for the DR to stick to. \n\n- After \u003ccode\u003eCLLocationDeadReckoning\u003c/code\u003e starts, it listens to CoreLocation updates and generates new DR locations after no location updates are received from CoreLocation for a predefined time interval, defined by \u003ccode\u003ekDeadReckoningInterval\u003c/code\u003e.\n\n- You register for DR location updates by calling the \u003ccode\u003eaddListener\u003c/code\u003e method of \u003ccode\u003eCLLocationDispatch\u003c/code\u003e. You must also respond to the \u003ccode\u003eCLLocationDeadReckoningHandler\u003c/code\u003e protocol messages, which will be sent to your listener by CLLocationDispatch. \n\n \n## How to use ##\n\n1. Clone this repo\n2. Add CoreLocationUtils folder to your project.\n2. Link with CoreLocation framework. \n\n\n## License ##\n\nCoreLocationUtils library is released under MIT License.\n\nPlease contribute your improvements and suggestions, and raise issues if you spot them.  \n\nThanks!  \n\n[![endorse](https://api.coderwall.com/rubnov/endorsecount.png)](https://coderwall.com/rubnov)\n","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100grams%2FCoreLocationUtils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F100grams%2FCoreLocationUtils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100grams%2FCoreLocationUtils/lists"}