https://github.com/hyperoslo/hyplocationmanager
The easiest way to use CLLocationManager.
https://github.com/hyperoslo/hyplocationmanager
Last synced: 11 months ago
JSON representation
The easiest way to use CLLocationManager.
- Host: GitHub
- URL: https://github.com/hyperoslo/hyplocationmanager
- Owner: hyperoslo
- License: other
- Created: 2014-03-17T16:52:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-29T13:02:08.000Z (over 11 years ago)
- Last Synced: 2025-02-06T06:41:34.935Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 211 KB
- Stars: 4
- Watchers: 17
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
HYPLocationManager
==================
HYPLocationManager is an easy to use interface for CLLocationManager. If you need to get your current coordinates, or show a specific coordinate on a map, or even get directions from your current location to anywhere, we got you covered.
### How to get my current location with **HYPLocationManager**?
``` objc
#pragma mark - Actions
- (IBAction)showMyCurrentLocation
{
HYPLocationManager *manager = [[HYPLocationManager alloc] init];
manager.delegate = self;
[manager showCurrentLocation];
}
#pragma mark - HYPLocationManagerDelegate
- (void)locationManager:(HYPLocationManager *)locationManager
didUpdateCoordinateRegion:(MKCoordinateRegion)coordinateRegion
{
// do something with your coordinates, or show them in a mapView by doing this
[locationManager centerMapView:self.mapView usingCoordinate:coordinateRegion.center];
}
```
### How to get directions to Hyper from my current location?
``` objc
HYPLocationManager *manager = [[HYPLocationManager alloc] init];
[manager showDirectionsToCoordinate:hyperCoordinate named:@"Hyper"];
```
License
=======
HYPLocationManager is fully open source under the MIT license. Check [LICENSE](https://github.com/hyperoslo/HYPLocationManager/blob/master/LICENSE.md) for details.
Contributions
=============
If there's something you would like to improve please create a friendly and constructive issue, getting your feedback would be awesome. Have a great day.