0

Is this posible to get the users current location with address and contact information(phone number). I have used CLLocationManager to get the current location of the user and the tried to get the address and other detail using google API, in the response I am getting current location's detail. But there is no contact information.

Like if user is currently visiting walmart or any other famous location then we can get their store's phone numbers or not?

Please tell me that, Can we get the phone numbers using google API or not?

Thanks

Rajender Kumar
  • 1,377
  • 19
  • 32

1 Answers1

0

If you can, it would be passed to you in the MKPlacemark that is sent to the MKReverseGeocoder delegate you have specified.

There is an "addressDictionary" property, which contains dictionary entries that conform to the "Address Book". If a phone number is available it would be in there.

If not, it either isn't available for your location or Google doesn't return that data to the reverse geocoded API.

Based on Google's JSON/REST based docs (http://code.google.com/apis/maps/documentation/geocoding/) I'd assume this data won't be returned, as it doesn't seem to be returned by the native API either.

  • Hi, Thanks for reply Simple Panda. You mean there is no data returned from the google API as of now right? – Rajender Kumar Jul 06 '11 at 04:08
  • Hi, I got this google API "https://maps.googleapis.com/maps/api/place/details/output?parameters" from this service I hope we can get all the desired information. here is the documention link "http://code.google.com/apis/maps/documentation/places/#PlaceSearchRequests" with detailed description. But as of now I don't know how we can use this service and other detail. If you have any experience with this then please help me. Thanks. – Rajender Kumar Jul 06 '11 at 04:20