Skip to content

Instantly share code, notes, and snippets.

@mathonsunday
Created June 8, 2021 21:45
Show Gist options
  • Save mathonsunday/0421397d8aa3eef5b80591082d2b4f4b to your computer and use it in GitHub Desktop.
Save mathonsunday/0421397d8aa3eef5b80591082d2b4f4b to your computer and use it in GitHub Desktop.
let query = SearchQuery()
query.geography = "nyc"
query.nePoint = CommonUtilsGeoLocation(location: Location(latitude: 40.9176, longitude: -73.7))
query.swPoint = CommonUtilsGeoLocation(location: Location(latitude: 40.4774, longitude: -74.2591))
query.rentalStatuses = RentalListingStatus.consumer
query.saleStatuses = SaleListingStatus.consumer
query.geohashLength = 4
query.zoomLevel = 13
query.maxResultsForGranularClustering = 69
query.listingTypes = [.sales]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment