Skip to content

add country code to searchplaces docs #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ Searches for places near a location, sorted by distance.
- **`chainMetadata[key]`** (optional): Optional [chain metadata](/places#metadata) filters. Values may be of type string, boolean, or number. Type will be automatically inferred. For example, to match on `offers == true`, use `&chainMetadata[offers]=true`.
- **`near`** (string, required): A location for the search. A string in the format `latitude,longitude`.
- **`radius`** (number, optional): The radius to search, in meters. A number between 1 and 10000. Defaults to 1000.
- **`country`** (string, optional): [Country](/regions/countries) filters. A string, comma-separated. If not provided, no country filtering is applied.
- **`limit`** (number, optional): The max number of places to return. A number between 1 and 100. Defaults to 10.

###### Authentication level
Expand Down
2 changes: 2 additions & 0 deletions docs/sdk/android.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ With the [places search API](/api#search-places), search for places near a locat
{"starbucks"}, // chains
null, // categories
null, //groups
null, // countryCode
10, // limit
new RadarSearchPlacesCallback() {
@Override
Expand All @@ -1413,6 +1414,7 @@ With the [places search API](/api#search-places), search for places near a locat
arrayOf("starbucks"), // chains
null, // categories
null, // groups
null, // countryCode
10 // limit
) { status, location, places ->
// do something with places
Expand Down
2 changes: 2 additions & 0 deletions docs/sdk/ios.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,7 @@ Radar.searchPlaces(
chains: ["starbucks"],
categories: nil,
groups: nil,
countryCode: nil
limit: 10
) { (status: RadarStatus, location: CLLocation?, places: [RadarPlace]?) in
// do something with places
Expand All @@ -1571,6 +1572,7 @@ Radar.searchPlaces(
chains:@[@"starbucks"]
categories:nil
groups:nil
countryCode:nil
limit:100
completionHandler:^(RadarStatus status, CLLocation *location, NSArray<RadarPlace *> *places) {
// do something with places
Expand Down
Loading