3

I am building an iOS application that in one of its functions implements reverse geocoding for obtaining street addresses from user gesture tap on a map.

When running the app using CLGeocoder's reverse geocoding features, I was only able to get the city and country details. In some cases in main roads I was able to get the main road name.

I thought that this limitation is from the Google Maps api.

But when I tested this example, (http://gmaps-samples.googlecode.com/svn/trunk/geocoder/reverse.html) I was able to get much more accurate and detailed information such as street number and name and zip code.

Is this a limitation of CLGeocoder? if so, how can I implement the Google Maps api on my app?

alandalusi
  • 1,145
  • 4
  • 18
  • 39
  • I found out of a SVGeocoder Wrapper for google geocoder API. I am testing it now, It indeed brings much for detailed results. – alandalusi Sep 05 '12 at 16:13
  • I was trying to use SVGeocoder but it would not find the location in 7 out of 10 tries, in the remaining 3, it would return the correct location, has this ever happened to you. If yes, what is the solution? What happens is that, SVGeocoder returns (0,0) as (lat,long) pair and thus it makes my next step go wrong, as I am using those values. – Autonomous Jul 04 '13 at 07:28

2 Answers2

0

It's my understanding that CLGeocoder has not used Google for data for around the last year; When it did use Google there was a substantial limitation on number of users per day.

You may also want to try the same CLGeocoder call in an iOS6 simulator to see if you get more data.

You could use the Google API calling directly from your app, but be carful to read the TOS for limitations in regards to users.

Kendall Helmstetter Gelner
  • 74,769
  • 26
  • 128
  • 150
0

Well, it would appear that yes, Apple's CLGeocoder is nothing like as accurate for forward geocoding (address -> coordinates) as the Google Maps Geocoding API, particularly outside of the USA. Using an Address Dictionary with all the fields filled out as fully as possible works a lot better than a simple address string, but it's still no where near good enough. Where Google will (usually) give you coordinates within 5-10m of the street number, Apple will give you coordinates somewhere in the right street, if you're lucky.

Found Apple Developer Technical Note TN2289 which details Supported Countries for CLGeocoder.

Further iOS6 would stop the support to use of Google Maps

Vimal Venugopalan
  • 4,091
  • 3
  • 16
  • 25