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
0 answers

CLGeocoder returns inaccurate results

I am using the method geocodeAddressString:(NSString *)addressString inRegion:(CLRegion *)region completionHandler:(CLGeocodeCompletionHandler)completionHandler inside CLGeocoder and it returns bad coordinates for the address string Beverly Hills,…
0
votes
2 answers

CLGeocoder only returns first look up result

I'm experiencing a weird issue with - (void)geocodeAddressString:(NSString *)addressString completionHandler:(CLGeocodeCompletionHandler)completionHandler;. I have a list of locations need to be looked up. So I did something like for (Trip *trip in…
Selkie
  • 1,773
  • 1
  • 14
  • 21
0
votes
0 answers

geocoder updates with improper location

I am working on the ios application where I have to type the place name and based on the text the location is found out using below mention function, but,I am not getting the proper location.My actual location should be latitude = 15.494248 …
Sam
  • 39
  • 3
  • 10
0
votes
2 answers

How to proceed if reverseGeocodeLocation returns an array of place marks?

I want to detect when the user has travelled to a new country and so am intending to use startMonitoringSignificantLocationChanges: in combination with reverseGeocodeLocation:. However I was wondering what to do if reverseGeocodeLocation: returns…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
0
votes
1 answer

Proper method for updating MKMapView

I use CLGeocoder to get the GPS coordinates for locations downloaded from a web-based API. Right now I count the number of records downloaded and update the MapView after I have iterated through my loop that number of times. This works, but it seems…
PhillipOReilly
  • 609
  • 12
  • 28
0
votes
0 answers

EXC_BAD_ACCESS Error when trying to copy dictionary to NSMutableDictionary in completionHandler

I have been trying to copy a dictionary to an NSMutableDictionary in a block. I have tried: myMutableDictionary = [immutableDictionary copy] " " = [immutableDictionary mutableCopy] " " = [NSMutableDictionary alloc…
PhillipOReilly
  • 609
  • 12
  • 28
0
votes
2 answers

CLGeocoder returns (null) in a NSString but not in NSLog

I have a problem with CLGeocoder, if I try to gain the address name using CLGeocoder and the user current coordinates it correctly returns the address name, postal code, state, etc. in the NSLog but if I try to send those informations in a NSString…
Aluminum
  • 2,932
  • 5
  • 35
  • 63
0
votes
0 answers

unexpected results from geocodeAddressString

My question is, why are poiCoordinate's latitude and longitude properties coming out 0, 0 when addressTF.text has a very sensible address string, for example "1 Infinite Loop, Cupertino, CA 95014"? //HomeViewController.m @implementation…
Rachel Q
  • 23
  • 1
  • 5
0
votes
1 answer

Forward GeoCoding is Working on Simulator but not iPhone

So I have a simple application that passes an address as a string to a view which then uses - (CLLocationCoordinate2D) geoCodeUsingAddress:(NSString *)address { double latitude = 0, longitude = 0; NSString *esc_addr = [address…
0
votes
2 answers

Confused about CLGeocoder class method for reverse geocoding a location

For the past 2 hours, I have been struggling with implementing a CLGeocoder class method that is used for reverse geocoding a location. The code that is provided for this method in the Xcode documentation under the CLGeocode class reference is…
user3117509
  • 833
  • 3
  • 14
  • 32
0
votes
1 answer

CLGeocoder not returning neighborhood name when I reversegeocode

I am currently working on an app that will use the data returned by reversegeocode. Right now I can successfully receive the following values for a location: address, city, state, zip code, and country. In addition to the values that I am able to…
davetw12
  • 1,815
  • 2
  • 20
  • 27
0
votes
1 answer

Forward geocoding with CLGeocoder in iOS returning null for locality of certain locations

I am trying to do a forward geocode on a string, and it usually works ok, but for some locations, like "Vancouver" it returns null for the locality of the resulting placemark, but it does return the country, province, and coordinates. I even tried…
shim
  • 9,289
  • 12
  • 69
  • 108
0
votes
3 answers

In iPhone how do I know when all of my map's annotations have loaded while using forward geocode?

In my app I have a table view that toggles the annotations on a map view. I can go back and forth between the table view and map view through the tab bar controller. My map will reload the annotations (from the selected items that are in the table…
mcphersonjr
  • 733
  • 12
  • 35
0
votes
1 answer

get nearest locations from my current location

I am currently developing a mobile application for iOS which consists a part that requires to determine the users current location and from current location, i want to find nearest locations. Is there any way to implement this ?? I have done some…
Krunal
  • 6,440
  • 21
  • 91
  • 155
0
votes
0 answers

CLGeocoder doesn't return any placemarks

I have some problem with CLGeocoder, it doesn't return any value for Polish street name: "Suwalska 3 Wrocław" I use this method to download coordinate: CLGeocoder *geocoder = [[CLGeocoder alloc] init]; [geocoder geocodeAddressString:@"Suwalska 3…
edzio27
  • 4,126
  • 7
  • 33
  • 48