I'm getting started on Map Kit for my job and I have a IOS project I am working on where it involves Map Kit, I know how to search for a location and pin point it but my issues is that part of my project involves getting the next 10-15 zip codes of the surrounding areas of my central location and receive the cities that are in each zip code, i really don't know how to implement it and I need help. an explanation or a snippet of code would be much appreciated.
Getting surrounding zip codes from a location using Apple Map Kit
1.8k Views Asked by PopperJuan At
2
There are 2 best solutions below
0
rambodrahmani
On
Use Google Places API for this.
You can go for a Radar or NearbyPlaces search and get zip codes of the returned places (you can use a custom location and set the radius for your search as you are wishing to do).
There is a really good iOS library for querying Google Places API which is FTGooglePlacesAPI
Eventually you can also do everything manually using
NSData* data = [NSData dataWithContentsOfURL:YOUR-googleRequestURL];
and handling the fetched data.
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in LOCATION
- How to set resources directory in eclipse dynamic web project?
- Look if current location is near marker
- Drupal location module shows only a portion of Gmap on node page
- iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization
- Detect Country then show message?
- Give fake location to Genymotion emulator
- Moving Divs in JavaScript with key presses
- Converting CLLocationCoordinate2D to a String that can be stored
- FusedLocationProviderApi Fatal exception: GoogleApiClient is not connected yet.
- Finding user's current location with Parse and saving it in the Parse database
- Get listview item position after soft keyboard shown
- JavaFX How can I set the location/coordinates of a pane?
- Can a geofence contain many other geofences
- distanceBetween or other way to check if current position is in radius to marker
- JFrame wrong location with Ubuntu (Unity ?)
Related Questions in MAPKIT
- Reposition legal label ( MKAttributionLabel )
- Customize MKAnnotation Callout View?
- Add annotations from Array from core data
- Set the zoom for MKMapCamera and MKUserTrackingMode to be equal in a view controller
- How to show and search in google autocomplete just place my current city(area)?
- MKMapitem's Placemark.name is nil when creating MKMapItem from MKPlacemark
- Identify when MKRoutestep finishes
- Touching MKMapView causes pins to move slightly
- MapKit (iOS) -- Live MKAnnotation Motion
- Limit the MapView to a certain area but still able to zoom in and out
- MKMapView: user location pin color change to gray automatically
- Found nil while unwrapping an Optional Value
- Replace Apple Mapkit with Google Maps for business or work
- MKAnnotation just shown after move camera (swift)
- When I zoom my mapView to show my annotations, the selected annotations are partially off screen
Related Questions in ZIPCODE
- SQL Server: Update Zips, see if zips exist, Update Carrier to correspond with Zips
- Formatting Zipcode in R (removing - from zipcode)
- API to get Center point zip code of a City
- Zapier.com zipcode autofill city and state
- Getting surrounding zip codes from a location using Apple Map Kit
- How to do Zip code to bar code conversion?
- Check if Zip Code or postal code is real
- Find users within the radius of location based on zip code
- Locating users within a radius of another users zip code
- MySQL - Perl: How to get array of zip codes within submitted "x" miles of submitted "zipcode" in Perl example
- Find locations using zip codes, cities or coordinates
- Fastest way (and most optimized) to calculate and sort users by ascending order of zip code distance
- Zip code with geolocation service in Windows Phone 7
- SQL Error: Every derived table must have its own alias
- How to get postal code using user current location in android
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Zip codes like this aren't available in MapKit. You need to find a third-party source of zip code data (e.g. codes + bounding geometries), figure out a way to index them (perhaps be using or precalculating the centroid of each), and then figure out what's close to the selected point.