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
0
votes
1 answer

CLGeocoder forward geocoding a postcode

I'm currently forward geocoding a postcode entered by the user via clgeocoder, however i'm getting some odd behaviour. If the user simply enters a single letter "p" for example, it can sometimes cause the app to become unresponsive, however in the…
SmokersCough
  • 967
  • 7
  • 22
0
votes
1 answer

Get State from GPS Coordinates

I have used CLLocationManager to get the current GPS coordinates of a user. How would I use CLGeoCoder to convert these coordinates into just the current State the user is in? Thanks.
user391686
  • 97
  • 2
  • 12
0
votes
2 answers

Forward geocoding and zoom to fit multiple locations

The following is the code I have used to load mapview. - (void)getLatLongCoordinates:(NSString*) addressStr firstNameTitle:(NSString*) firstNamesTitle lastNameTitle:(NSString*) lastNamesTitle { MKPointAnnotation *annotationPoint =…
Xavi Valero
  • 2,047
  • 7
  • 42
  • 80
0
votes
1 answer

CLGeocoder delay until completion handler

I have an app that requires Geocoding from a string to lat/long values, I use the geocoder from the iOS class…
Uba Duba
  • 241
  • 2
  • 12
0
votes
1 answer

Human readable location in iOS 6.1

Since the 6.1 update I can only reverse the first 25% of all the photos containing CLLocation information. After the first 25% I get for all the others: Error Domain=kCLErrorDomain Code=2 "The operation couldn’t be completed. (kCLErrorDomain error…
Nuthinking
  • 1,211
  • 2
  • 13
  • 32
0
votes
1 answer

Overlay cities, districts, etc in a MKMapView

How can I overlay geometry on an MKMapView of a specific city or district within a city? I'm looking at CLGeocoder, MKOverlayView and CLRegion, but I'm a bit confused. How can I get the coordinates to create an MKPolygon / overlay? In Apple's…
aroooo
  • 4,726
  • 8
  • 47
  • 81
0
votes
2 answers

Unrecognized selector error processing results from geocodeAddressString

I'm trying to create multiple placemarks using MKMapItem without using coordinates. I used location name directly in geocodeAdressString:@"Mumbai"... but I got result for single location. While I use multiple locations through array, I'm getting…
Grey Code
  • 326
  • 5
  • 19
0
votes
1 answer

Issue With __block And CLGecoder in ios?

i write code of CLGecoder and the code are -(NSString *)GetCurrentAddress:(CLLocation *)Location { __block NSString *locatedaddress; CLGeocoder *Gecoder=[[CLGeocoder alloc]init]; [Gecoder reverseGeocodeLocation: Location…
Tefa
  • 21
  • 3
0
votes
1 answer

CLLocationManager and CLGeoCoder

I want to use coordinate of the actual location (CLLocationManager) to reverse geocoding (CLGeoCoder). I have this code: locationMgr = new CLLocationManager(); locationMgr.DesiredAccuracy = CLLocation.AccuracyNearestTenMeters; …
Fous
  • 1
  • 1
  • 2
0
votes
1 answer

Placemark not giving zip code to find out weather information

I want to find out the weather from the current location. For that I used the code as -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { …
Heena
  • 2,348
  • 3
  • 32
  • 58
0
votes
1 answer

CLGeocoder forward geocoding multiples Locations

Hi am using this method to get the coordinates and add a pin to the map view for one post code -(void)myMapview { //sitePC is an Array with the Post code location NSString *addressString = [self.sitePC valueForKey:@"sitePC"]; …
HernandoZ
  • 742
  • 2
  • 12
  • 24
0
votes
1 answer

ios geocodeAddressString modify global variable during block

I understand that the call to CLGeocoder geocodeAddressString is asynchronous, with a block passed in to handle the callback at completion time. I also understand that the only variables that are mutable within the block are local __block…
bobsmells
  • 1,359
  • 2
  • 11
  • 22
0
votes
3 answers

geocode method not executing second time in the for loop

I have written following code to find out the coordinates of list of countries. int count=[objCountries.countryName count]; CLGeocoder *geoCode = [[CLGeocoder alloc] init]; for(int i=0;i
Will Smith
  • 339
  • 1
  • 4
  • 13
0
votes
2 answers

CLGeocoder not working

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after app launch [window addSubview:viewController.view]; [window…
iPhone Programmatically
  • 1,211
  • 2
  • 22
  • 54
0
votes
1 answer

'return' after a CLGeocoder has reverse geocoded data

How do I only return a custom init method when it has finished reverse geocoding data? Is there even a way to do this? I assumed I should just add 'return self' at the end of the completionHandler, but this just returns to the init method, as oppose…
Adam Carter
  • 4,741
  • 5
  • 42
  • 103