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

Get place names using CLGeocoder (not street names)

I want to develop my own maps app. I have been successful in getting a street address at the point of touch on my iPhone using CLGeocoder. Now my question is the following: I know that you can get information about a place by using a URL like…
Autonomous
  • 8,935
  • 1
  • 38
  • 77
0
votes
1 answer

reverse geocoding on the IPhone - getting exact street numbers

We are building a series of applications for the IPhone (IOS5), where we use reverse geocoding. Most of the time, CLGeocoder returns a range for the address number (eg. "someaddress 2-5"). We want to retrieve the exact street number for every…
0
votes
1 answer

Getting the exact strings of states/provinces that CLGeocoder returns

Where can I find the list of states and provinces that CLGeocoder returns when reverse-geocoding? There must be a list that defines and translates a set of coordinates into city/state/country/etc. I am asking because I need to make sure there are no…
Lawrence Wu
  • 212
  • 1
  • 2
  • 12
0
votes
1 answer

CLGeocoder only shows nearest apple store?

Is CLGeocoder just that coarse right now? I was expecting something relatively close to a street address. I'm testing on the 5.1 simulator and using ARC. I made a quick test project right now with the following if that helps: -…
tarabyte
  • 17,837
  • 15
  • 76
  • 117
0
votes
1 answer

Google place API for iOS

I am trying to find location of places with business names. I think I should use Google Place API as CLGeocoder cannot locate place with name. So I looked at the Google Place API and got little confused about the part of location field. I think I am…
in His Steps
  • 3,075
  • 6
  • 30
  • 38
0
votes
1 answer

Find all locations in a region through methods of CLGeocoder

It is convenient to use "– reverseGeocodeLocation:completionHandler:" method to Reverse Geocoding a Location. But how to obtain all locations in a region. ps. If there are several places in a region. How could I use the region information to find…
lu yuan
  • 7,207
  • 9
  • 44
  • 78
0
votes
1 answer

How can I match the place with the result of CLGeocoder?

I can get the result (like locality, ISOcountryCode, etc) by CLGeocoder's reverseGeocodeLocation:completionHandler: method successfully. But how can I match the place with the result? e.g.: If the city (locality) of result is Hangzhou City, I can…
Kjuly
  • 34,476
  • 22
  • 104
  • 118
-1
votes
1 answer

CLGeocoder region specific Error Domain=kCLErrorDomain Code=8 "(null)"

I have a query regarding clgeocoder apis , basically in our app we have a provision to add address manually by user by giving region, city and place details etc; when I try to fetch lat long values via CLgeocoder geocodeAddressString api its…
vyshnavi
  • 1
  • 2
-1
votes
2 answers

Swift - Passing back data via a block instead of a return statement

Actually I'm facing a similar situation in this link: CLGeocoder in Swift - unable to return string when using reverseGeocodeLocation Sorry to duplicate it, but how to pass the string out of the completion block? Thank you very much for your help,…
johnnyman
  • 129
  • 2
  • 11
-1
votes
1 answer

Is it possible to find available services like cabs in current location using gps in iPhone

I am developing an Application, which should give the available taxi or cabs at the current location in the city, here, what i have done is, i found the current location(address) using Reverse CLGeocoder. To get the available resources, whether i…
jireh
  • 89
  • 1
  • 2
  • 11
-1
votes
1 answer

Saving Latitude and Longitude values to a MySQL Database iOS

I've set my code up so that the user inputs all of the location details (address, city, county, country and postcode) and then on the click of a button the lat and lon values are fed into two text boxes... My problem now is that the code that was…
krisscross90
  • 47
  • 11
-2
votes
2 answers

How do I get the results from an @escaping closure to not disappear

I'm trying to create a function that takes a postalCode and passes back the city, state, and country. The function finds the results and they can be printed from the calling closure; however, when I save the data outside they closure, they…
indyMac
  • 17
  • 3
-2
votes
1 answer

Having trouble putting in the coordinates in global variable [CLgeocoder, swift4]

I am trying to create an app that will find the sunrise time and I am using this web API that requires both coordinates of the location. This is my solution for to get the latitude and longitude but then it does not let me store the coordinates in…
kfc0105
  • 3
  • 1
-2
votes
1 answer

How do I assign a class property within a closure in swift 4

Im trying to access the location data, from that get the city name and then assign it to a variable so I will be able to use it elsewhere. It prints the variable fine from within the closure but its nil when I try to access it through the class…
Chris W
  • 13
  • 2
-2
votes
2 answers

Why is defer block executed before a closure finishes in the same function

I wrote the following function to add a map annotation that uses CLGeocoder() to resolve the location name given a coordinate. I use a defer block to get the resolved location name. However, the defer block seems to finish before the closure…
TonyW
  • 18,375
  • 42
  • 110
  • 183
1 2 3
15
16