Getting Zip Code using Core Location

Discussion in 'iPhone' started by LBurtner, Apr 8, 2009.

  1. LBurtner macrumors newbie

    Apr 7, 2009
    I've been playing around with Core Location and have been able to successfully get the latitude and longitude no problem. All I really need though is the zip code of the users phone, if possible. Does anyone know of any good examples of someone doing this or could point me in the right direction?
  2. JBaker122586 macrumors 65816

    Jun 21, 2007
    You say "zip code of their phone." A phone doesn't have a zip code... it has an area code.
    And if you want area code, it's not necessarily location based.
  3. duffer macrumors regular

    Jul 31, 2007
    It sounds like he/she is trying to obtain the zip code the person/iphone is currently located. Is this correct?
  4. fishkorp macrumors 68020


    Apr 10, 2006
    Ellicott City, MD
    You need to use reverse geocoding. That is not part of CoreLocation. With 2.x SDK you need to use an external service. With 3.0 I believe MapKit has it (which essentially is your app calling Google's reverse geocoding service) I think.

Share This Page