title: Limit MKLocalSearch to a region
body: <p>I am using MKLocalSearch to search for places and display the result on the map.
  The problem is that sometimes if a restaurant exists in another state for example, it goes to the another state, i want to limit results to my region.
  Here is my code</p>
  
  <p><a href="http://pastebin.com/89TxwR7X" rel="nofollow noreferrer">http://pastebin.com/89TxwR7X</a></p>
  
  <pre><code>        let searchRadius: CLLocationDistance = 10000
      let region = MKCoordinateRegionMakeWithDistance(location.coordinate, searchRadius * 2.0, searchRadius * 2.0)
  
      map.setRegion(region, animated: true)
  
          let request = MKLocalSearchRequest()
      request.naturalLanguageQuery = getRandomPlace()
      request.region = map.region
  
      let search = MKLocalSearch(request: request)
      search.start { response, error in
          guard let response = response else {
              print("There was an error searching for: \(request.naturalLanguageQuery) error: \(error)")
              return
          }
  
          for item in response.mapItems {
              self.dropPinZoomIn(item.placemark)
          }
      }
  </code></pre>