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
1
vote
2 answers

Localized geocoding options in iOS 6

With iOS 6 can we still use Google's API to geocode addresses? I vaguely recall that Google's licensing requires the results to be displayed on Google maps, which is obviously not possible in iOS 6. I have found the built in CLGeocoder to be hit &…
redshift5
  • 1,966
  • 1
  • 18
  • 27
1
vote
0 answers

How to reverse geocode an annotation?

I have an app that drops multiple annotations, and I want to reverse geocode the pin locations and set the address as the subtitle. Here is the code I have so far, but I do not know how to implement the reverse…
Chandler De Angelis
  • 2,646
  • 6
  • 32
  • 45
1
vote
0 answers

Does CLGeocoder send AppleID, or PhoneID, etc?

I am using Apple's CLGeocoder to do geocoding. I am mostly calling – reverseGeocodeLocation:. The docs state that the old geocoder used Google, and they have a TOS that I can read. I can't find one for Apple. Experimentally has any one looked at…
Tom Andersen
  • 7,132
  • 3
  • 38
  • 55
1
vote
2 answers

CLGeocoder reverseGeocodeLocation. First time in [placemarks count = 0]?

I am new to ObjC and I am struggling with the CLGeocoder. I want to be able to use reverseGeocodeLocation to obtain a string that contains the user location that I pass to my delegate when the user presses a Done button. So the user triggers the…
Byron Cox
  • 349
  • 5
  • 17
1
vote
2 answers

Reverse Geocoding issues for City name in iOS

I'm able to retrieve the current location in my iPad application using, CLLocation *location = [[CLLocation alloc] initWithLatitude:[latitude floatValue] longitude:[longitude floatValue]]; CLGeocoder *geocoder = [[CLGeocoder alloc] init]; …
Breakpoint
  • 1,511
  • 1
  • 18
  • 41
1
vote
0 answers

CLLocationManager Delegate methods not being called - CLLocationManager set up in main thread

I have the following function that I believe is being run in the main thread (it is the event assigned to a button click) -(void)startTracking:(CLLocation*) targetLocation { NSLog(@"Target location: %@", targetLocation); self.locationManager…
HillInHarwich
  • 441
  • 6
  • 25
1
vote
1 answer

What are the names of administrativeArea, subAdministrativeArea, etc called outside of the United States?

I am working on a geographically aware high score server, and would like to be able to list scores like "First place in Dutchess County" or "Third place in the State of New York". I can reverse geocode the user's location and get a placemark that…
Chris Garrett
  • 4,824
  • 1
  • 34
  • 49
1
vote
0 answers

Is it guaranteed to get name in placemark after geocoding is successful?

So if I typed address of a business, (so it's forward geocoding) will I surely get the name of business in placemark? when I tried some addresses such as apple headquarter, I got the name in placemark. However, it seems like I don't always get the…
in His Steps
  • 3,075
  • 6
  • 30
  • 38
1
vote
1 answer

CLGeocoder returns different result than MKReverseGeocoder

I am attempting to modify our app from using MKReverseGeocoder to CLGeocoder for devices running iOS 5, but I'm getting different results from the two classes. Specifically, when doing a reverse geocode with this coordinate: (47.643126,…
David Potter
  • 2,272
  • 2
  • 22
  • 35
0
votes
1 answer

Instance Variable Not Retaining Value

I'm trying to forward geocode an address in iOS 5 using the CLGeocoder object and the put the resulting CLLocation in an instance variable. For some reason, I can set the instance variable and then call its getter, but the variable loses its value…
AlexSBerman
  • 37
  • 1
  • 5
0
votes
1 answer

Adding City and State Information to MKAnnotation Using CLGeocoder

I'm trying to add city & state information to an MKAnnotation but the data is being cleared before I can add it to the annotation. Here is my current code (only showing the sections/parts of concern for simplicity): in implementation: -…
Kevin_TA
  • 4,575
  • 13
  • 48
  • 77
0
votes
1 answer

How to get the Address from Latitude and longitude using CLGecoder?

I tried Using CLGeocoder but i am not getting the correct address. But however i tried the same using MKReverseGeocoder and i am getting the correct address. Did anyone encounter this issue before. Is it a bug or am i going wrong somewhere.
philip abraham
  • 587
  • 1
  • 5
  • 20
0
votes
0 answers

Converting Address to Coordinates and Saving to Data Model

I have a data set of stores. I am building an app using Swift to help people see which stores are closest to them. The data include the stores' addresses, but not their coordinates, so I need to make sure the coordinates are included in the data…
AzAzinZ
  • 21
  • 2
0
votes
1 answer

Domain=kCLErrorDomain Code=8 when fetching location through zipcode

I'm trying to fetch the the latitude and longitude based on the input parameters postal/city and country code. Below is my code, this works fine if enter City and country name but shows error if I enter zipcode and country code. Below is the code.…
iOSDev2013
  • 67
  • 1
  • 6
0
votes
0 answers

CLGeocoder's geocodeAddressString always return an array with only one CLPlacemark object

CLGeocoder's geocodeAddressString function always return an array with only one CLPlacemark object, independently of the string passed as a parameter. I'm using it like this: let placesArray = try await…