ios - Fetch location from carrier not lat/lon -
most people remember old nokia phones, showed current district (cell tower) connected to.
is information available on ios? if so, how fetch info?
so mean when in new york example return "fulton" district...
you don't access cell tower information described on ios, can use corelocation framework (mapkit if want backward compatibility ios 5.0 reason) reverse geocode , detail available.
for ios 7.0, use clgeocoder object.
clgeocoder *geocoder = [[clgeocoder alloc] init]; [geocoder reversegeocodelocation:location completionhandler:^(nsarray *placemarks, nserror *error) { // iterate through available placemarks }];
the location parameter cllocation object have received or created user's location. reverse geocode requests array in completion handler contain single placemark. various properties , corresponding real-world relations placemark object can found here
Comments
Post a Comment