|
21 | 21 | - Query Autocomplete: 50,000 meters |
22 | 22 | - Text Search: 50,000 meters |
23 | 23 |
|
24 | | -- <h3 class="parameter-name" id="type">type</h3> |
25 | | - |
26 | | - Restricts the results to places matching the specified type. Only one type may be specified. If more than one type is provided, all types following the first entry are ignored. |
27 | | - |
28 | | - - `type=hospital|pharmacy|doctor` becomes `type=hospital` |
29 | | - - `type=hospital,pharmacy,doctor` is ignored entirely |
30 | | - |
31 | | - See the list of [supported types](https://developers.google.com/maps/documentation/places/web-service/supported_types). |
32 | | - |
33 | | - <div class="note">Note: Adding both `keyword` and `type` with the same value (`keyword=cafe&type=cafe` or `keyword=parking&type=parking`) can yield `ZERO_RESULTS`.</div> |
34 | | - |
35 | 24 | <h2 id="optional-parameters">Optional parameters</h2> |
36 | 25 |
|
37 | 26 | - <h3 class="parameter-name" id="keyword">keyword</h3> |
|
83 | 72 | - `prominence` (default). This option sorts results based on their importance. Ranking will favor prominent places within the set radius over nearby places that match but that are less prominent. Prominence can be affected by a place's ranking in Google's index, global popularity, and other factors. When prominence is specified, the `radius` parameter is required. |
84 | 73 | - `distance`. This option biases search results in ascending order by their distance from the specified location. When `distance` is specified, one or more of `keyword`, `name`, or `type` is required and `radius` is disallowed. |
85 | 74 |
|
| 75 | +- <h3 class="parameter-name" id="type">type</h3> |
| 76 | + |
| 77 | + Restricts the results to places matching the specified type. Only one type may be specified. If more than one type is provided, all types following the first entry are ignored. |
| 78 | + |
| 79 | + - `type=hospital|pharmacy|doctor` becomes `type=hospital` |
| 80 | + - `type=hospital,pharmacy,doctor` is ignored entirely |
| 81 | + |
| 82 | + See the list of [supported types](https://developers.google.com/maps/documentation/places/web-service/supported_types). |
| 83 | + |
| 84 | + <div class="note">Note: Adding both `keyword` and `type` with the same value (`keyword=cafe&type=cafe` or `keyword=parking&type=parking`) can yield `ZERO_RESULTS`.</div> |
| 85 | + |
86 | 86 |
|
87 | 87 | <p style="text-align: right; font-size: smaller;">Generated from the <a class="gc-analytics-event" data-category="GMP" data-label="openapi-github" href="https://github.com/googlemaps/openapi-specification" title="Google Maps Platform OpenAPI Specification" class="external">OpenAPI specification</a>. |
88 | 88 | <a class="gc-analytics-event" data-category="GMP" data-label="openapi-github-maps-http-parameters-placenearbysearch" data-action="edit" style="margin-left: 5px;" href="https://github.com/googlemaps/openapi-specification/tree/main/specification/parameters" title="Edit on GitHub"><span class="material-icons">edit</span> Edit</a> |
|
0 commit comments