- Home /
Setting up ReverseGeocodeLocation Method properly
I'm having the hardest time setting up the delegate properly for the ReverseGeocodeLocation Method. If anyone can provide a code snippet showing it's proper syntax and usage I would greatly appreciate it, Thanks.
Hello Contempt, were you able to find a solution for this? If so could you please share the gist of it? Thank you!
Answer by u3dxt · Feb 14, 2014 at 09:06 PM
// reverse geocode the happiest place on earth
CLLocation location = new CLLocation(33.809, -117.919);
CLGeocoder geocoder = new CLGeocoder();
geocoder.ReverseGeocodeLocation(location, delegate(object[] placemarks, NSError error) {
if (error != null)
Debug.Log(error.LocalizedDescription());
else {
foreach (var p in placemarks) {
var placemark = p as CLPlacemark;
Debug.Log("placemark: " + placemark.name + "\n"
+ ABAddressFormatting.ABCreateString(placemark.addressDictionary, true));
}
}
});
Hello u3dxt, do you have any sample project to share with regard to the above implementation? I have strong Unity but not so great iOS(native) coding skills. Thank you!
Your answer
![](https://koobas.hobune.stream/wayback/20220613133523im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
U3DXT Init failed, everything is setup 1 Answer
Multiple Multiplayer Games on iOS 1 Answer
Just got u3dxt essentials, throws errors and doesn't load examples. 1 Answer
u3dxt causing failed validation 2 Answers
Has U3DXT been abandoned? 2 Answers