tags:

views:

37

answers:

2

Hi All,

In my application i have to get the location name using latitude and longitude values, I think we can get them through reverse geocoding is there any method that we can use and get the location value

Thank You

A: 

MKReverseGeocoder.

jtbandes
Yeah we can use MKReverseGeocoder. is there any other method other than MKReverseGeocoder.Thank You
kiri
@user133611 Why would you want something else? MKReverseGeocoder is the way to do it. What's wrong with it?
jtbandes
My problem is in my application i have to display different colored pins based on the condition. In this method "- (MKAnnotationView *) mapView:(MKMapView *)mapView1 viewForAnnotation:(id <MKAnnotation>) annotation" I am using different conditions based on [newAnnotation.annotation subtitle], But i am getting exception [Placemart subtitle] unrecognized. Actually only One pin I have to get Location Value and display it as title but for remaining Pins I am using custom Title and subtitles to display. By using the subtitles i have to categorized the pin colors
kiri
+1  A: 

You may also want to take a look at Geonames.org for placenames lookup. It provides acess to a database with more than 8 million geolocations through a JSON or XML api.

Claus Broch
+1! What a great resource--way better than Google's throttled geocoding service.
Dan Ray