Questions tagged [clgeocoder]

The CLGeocoder class provides services for converting between a coordinate (specified as a latitude and longitude) and the user-friendly representation of that coordinate.

The CLGeocoder class provides services for converting between a coordinate (specified as a latitude and longitude) and the user-friendly representation of that coordinate. A user-friendly representation of the coordinate typically consists of the street, city, state, and country information corresponding to the given location, but it may also contain a relevant point of interest, landmarks, or other identifying information. A geocoder object is a single-shot object that works with a network-based service to look up placemark information for its specified coordinate value.

http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLGeocoder_class

227 questions
-4
votes
1 answer

What is the best way to get user's current city, state, and Country in iOS Swift?

I know I can use CLGeocoder to get the user's location like locality, administrative area, and country. I just need this information(city, state, and country) while logging alone to my app. I don't want to my user to turn on the location services. I…
Sharme
  • 625
  • 4
  • 10
  • 28
-6
votes
1 answer

How do I extract the lat and long from the following code?

How do I extract the lat and long from the follwoing code: CLGeocoder *geocoder = [CLGeocoder new]; [geocoder geocodeAddressString:city completionHandler:^(NSArray *placemarks, NSError *error) { if (error) { NSLog(@"Error: %@", [error…
user2588945
  • 1,681
  • 6
  • 25
  • 38
1 2 3
15
16