### Search for text The `Amplify.Geo.search(for text:)` API enables you to search for places or points of interest by free-form text, such as an address, name, city, or region. ```swift Amplify.Geo.search(for: "coffee shops") { result in switch result { case .failure(let error): print(error) case .success(let places): dump(places) } } ``` You can refine your search by specifying following parameters inside `Geo.SearchForTextOptions` - `area` - `.near` - to act as the search origination location. - `.within` - to limit the area to search within. - `countries` - to limit the search results to given countries. - `maxResults` - to limit the maximum result set (defaults to 50). ```swift let coordinates = Geo.Coordinates(latitude: 47.62246, longitude: -122.336775) let options = Geo.SearchForTextOptions(area: .near(coordinates), countries: [.usa, .can], maxResults: 25) Amplify.Geo.search(for: "coffee shops", options: options) { result in switch result { case .failure(let error): print(error) case .success(let places): dump(places) } } ```