Created
March 15, 2024 16:25
-
-
Save jstart/f5067f590d40b0533572160a36a75abd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)testPlaceSearchByTextRequestGMPSRequestCreationWithProperties { | |
GMSPlaceSearchByTextRequest *request = | |
[[GMSPlaceSearchByTextRequest alloc] initWithTextQuery:@"pizza in New York" placeProperties:@[GMSPlacePropertyName, GMSPlacePropertyPlaceID]]; | |
request.isOpenNow = YES; | |
request.includedType = @"restaurant"; | |
request.maxResultCount = 5; | |
request.minRating = 3.5; | |
request.rankPreference = GMSPlaceSearchByTextRankPreferenceDistance; | |
request.isStrictTypeFiltering = YES; | |
request.priceLevels = @[ @(kGMSPlacesPriceLevelFree), @(kGMSPlacesPriceLevelCheap) ]; | |
request.locationRestriction = GMSPlaceRectangularLocationOption( | |
CLLocationCoordinate2DMake(20, 30), CLLocationCoordinate2DMake(40, 50)); | |
request.locationBias = GMSPlaceCircularLocationOption(CLLocationCoordinate2DMake(20, 30), 2.0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment