Map View (Apple framework) - Imtiaz211/interviews GitHub Wiki
What is CLLocation?
A
CLLocationobject contains the geographical location and altitude of a device, along with values indicating the accuracy of those measurements and when they were collected. In iOS, a location object also contains course information—that is, the speed and heading in which the device was moving.
What is CLPlacemark?
A
CLPlacemarkobject stores placemark data for a given latitude and longitude. Placemark data includes information such as thecountry,state,city, andstreetaddress associated with the specified coordinate. It can also include points of interest and geographically related data.
What is GEOFencing?
- A
Geofenceis a technology that defines a virtual boundary around a real world geographical area. Every time the user enters or exits the boundary of a certaingeofence, actions can be triggered in a location enabled device.CLGeocoder: This class provides the functionality to convert the coordinates into user-friendly representation. A user-friendly representation of coordinates consists of the name of the city, state, country etc..Reverse Geocode Location: This method is used to submit the location data to thegeocodeserver asynchronously. This method takes alatitudeandlongitudevalue and returns the result in user readable format. This result is returned through theCLPlacemarkobject.Desired Accuracy: This property defines the accuracy of the location data.Distance Filter: It defines the minimum distance the device must move horizontally before update is generated."
What is CLLocationManager?
- The
objectthat you use to start and stop the delivery of location-related events.- It is a
classthat is the central point for configuring the delivery of location- and heading-related events to your app.- Tracking
large or smallchanges in the user’s current location with a configurable degree of accuracy.- Reporting heading changes from the onboard compass. (iOS only).
Monitoring distinctregions of interest and generating location events when the user enters or leaves those regions.- Deferring the delivery of location updates while the app is in the background. (iOS only).
- Reporting the range to nearby beacons.
- A
CLHeadingobject contains heading data generated by aCLLocationManagerobject.- The
CLRegionclass defines an abstract area that can be tracked. In iOS, you do not createinstancesof this class directly; instead, you instantiate subclasses that define specific types of regions.Deviceswith a magnetometer can report the direction in which a device is pointing, also known as its headingDevices with GPS hardwarecan report the direction in which a device is moving, also known as its course.
Google Map offline ?
One of my favourite features of the Google Maps app is its ability to save offline maps on the iPhone. Whether you want map access regardless of cell reception or you’re traveling abroad and won’t have a data connection, Google Maps is king. Even better, it costs you absolutely nothing.
What is the location Service?
Applications such as
Maps,camera,Calendarandcompassare allowed to use the information fromcellular, Wi-Fi and Global Positioning System networksfor determining the approximate locations. The location is displayed on the screen, using a blue marker.
CLLocationManagerDelegates
- locationManager:didUpdateLocations:
- locationManager:didUpdateHeading:
- locationManagerShouldDisplayHeadingCalibration:
- locationManager:didDetermineState:forRegion:
- locationManager:didRangeBeacons:inRegion:
- locationManager:rangingBeaconsDidFailForRegion:withError:
- locationManager:didEnterRegion:
- locationManager:didExitRegion:
- locationManager:didFailWithError:
- locationManager:monitoringDidFailForRegion:withError:
- locationManager:didChangeAuthorizationStatus:
- locationManager:didStartMonitoringForRegion:
- locationManager:DidPauseLocationUpdates
- locationManager:DidResumeLocationUpdates
- locationManager:didFinishDeferredUpdatesWithError:
- locationManager:didVisit: