clgeocoder Questions

3

I'm trying to display multiple locations in MKMapItem. I am getting those locations from a CLGeocoder, unfortunately it only accepts one location. Even though I pass in an NSArray it just returns o...
Ambler asked 7/1, 2013 at 12:12

10

Solved

Trying to get formatted address from AddressDictionary, that I got from CLGeocoder. Used following code with no result: subtitle = [NSString stringWithString:[[addressDict objectForKey:@"Formatted...
Vermin asked 21/10, 2011 at 10:42

4

Solved

I have a search bar in my application that the user can type an address into, and it will come up with the geocoded result. The result updates as the user types, according to the following code: -...
Pavonine asked 25/7, 2013 at 19:47

3

Solved

I am developing app in iOS 8.0. By below link, I am assigning the location object, How can I get current location from user in iOS My aim is to find out City, State and Country name, By current l...
Hew asked 1/7, 2015 at 10:40

3

I am calling this function once I get the addressString: [[self geocoder] geocodeAddressString:addressString completionHandler:^(NSArray *placemarks, NSError *error) { if (error) { block(nil, n...
Siret asked 7/2, 2014 at 10:5

2

Solved

The documentation for - (void)geocodeAddressString:(NSString *)addressString completionHandler:(CLGeocodeCompletionHandler)completionHandler; The documentation clearly states: In the case of...
Terryn asked 5/12, 2012 at 9:29

7

Solved

I was wondering if it was possible to get the state abbreviations from CLPlacemark? In the CLPlacemark Reference from Apple it states: administrativeArea The state or province associated with the...
Plumcot asked 19/6, 2012 at 19:57

1

Solved

Whenever I'm calling: reverseGeocodeLocation(_ location: CLLocation, preferredLocale locale: Locale?, completionHandler: @escaping CLGeocodeCompletionHandler) I'm getting in the console: [GEOAd...
Danforth asked 24/9, 2019 at 7:53

3

Solved

I uses CLGeocoder to decode the CLLocation from longitude/latitude to place names. It works fine. But there is still one thing bothers me. When i set the device language to English, the result of t...
Lashanda asked 13/11, 2012 at 10:33

2

Solved

I've been all over the internet trying to find out how to get the city and country from CLGeocoder. I can get the longitude and latitude easily but I need the city and country information, and I ke...
Reserve asked 29/1, 2013 at 5:32

4

Solved

In one of my apps I need to add an ability to find a city by its name. I am using CLGeocoder to achieve this and I want it to have a behaviour identical to iOS weather app. Below is the code which...
Nappy asked 10/7, 2015 at 1:38

4

My iphone app supposed to resolve address based on latitude and longitude of the user. reverseGeocodeLocation works fine, but results are in english. Is there a way to localize the results to othe...
Vanderbilt asked 10/1, 2012 at 19:45

9

Solved

How to get an address from coordinates using MapKit? I have this code when long press on the map it gets the coordinates: func didLongPressMap(sender: UILongPressGestureRecognizer) { if sender....
Supposing asked 1/1, 2015 at 23:52

1

Solved

I'm trying to get city name from my current location coordiate by using CLGeocoder().reverseGeocodeLocation. It gives me country name, street name, state and many other things but not city. Is th...
Hectocotylus asked 14/3, 2018 at 11:3

2

Hi I am trying to use geocodeAddressString to convert the address to a placemark on the map, but whatever address I passed to this method, the below block will never be executed, could anyone give ...
Champaign asked 14/7, 2017 at 3:47

4

Solved

https://developer.apple.com/library/prerelease/mac/releasenotes/General/APIDiffsMacOSX10_11/Swift/CoreLocation.html shows that there were a couple of changes func geocodeAddressString(_ addressS...
Equally asked 18/9, 2015 at 15:4

4

Solved

I have a latitude/longitude location that I want to convert to the location name String in Swift. What is the best way to do this? i believe it's best to use the reverseGeocodeLocation function but...
Volumed asked 6/10, 2014 at 23:56

1

With a CLLocation object (content e.g. latitude = 48.196169, longitude = 11.620237), I try to get the current city and country like: if(!geocoder) { geocoder = [[CLGeocoder alloc] init]; } if (g...
Discobolus asked 19/3, 2014 at 16:42

2

Solved

Whatever address i give to the geocoder ([geocoder geocodeAddressString:completionHandler:), it always puts only one object in the placemarks array. I there any way to get multiple results (like i...
Oakie asked 2/5, 2012 at 15:36

2

I want to revive this and this question because the problem still persists for me, so I'm writing a new question. This is my code: - (SVGeocoder*)initWithParameters:(NSMutableDictionary*)paramete...
Tempestuous asked 3/4, 2013 at 16:40

1

Solved

I'm try to localize a start and end point to an address string, so that I can store it into NSUserDefaults. The problem is that the method continues executing and does not set my variable. NSLog(@...
Frankfort asked 15/1, 2013 at 20:41

1

I'm new to Objective-C programming. I want to display location in MapView by Zip code / Postal Code. For that i have to find the latitude and longitude. I had already referred many solutions by p...
Rasure asked 13/12, 2012 at 11:6

3

Solved

I have the following code: CLGeocoder *_geo = [[CLGeocoder alloc] init]; CLRegion *region = [[CLRegion alloc] initCircularRegionWithCenter: CLLocationCoordinate2DMake(37.33233141, -122.03121860) r...
Clothilde asked 18/4, 2012 at 3:55

2

I have a problem with CLGeocoder where when I call geocodeAddressString:withCompletionHandler I only ever get one result back, despite knowing that the inputted string should return more than one v...
Hurlee asked 5/7, 2012 at 12:17

2

Solved

I got a large set of about 200 addresses for which I need to know their latitude and longitude. I've created a method that parses the addresses, and now I'm trying to get coordinates for these addr...
Rhaetia asked 16/5, 2012 at 13:44

© 2022 - 2024 — McMap. All rights reserved.