Interface
Options for findPlacesNearPoint
.
Properties
Property | Type | Notes |
---|---|---|
authentication inherited | string | IAuthenticationManager | The instance of |
categoryIds inherited | string[] | Filters places to those that match the category Ids. |
credentials inherited | RequestCredentials | A string indicating whether credentials (cookies) will be sent with the request. Used internally for authentication workflows. |
headers inherited | { [key: string]: any } | Additional Headers to pass into the request. |
hideToken inherited | boolean | Prevents the token from being passed in a URL Query param that is saved in browser history. Instead, the token will be passed in POST request body or through X-Esri-Authorization header. NOTE: This will force POST requests in browsers since auth header is not yet supported by preflight OPTIONS check with CORS. |
maxUrlLength inherited | number | If the length of a GET request's URL exceeds |
offset inherited | number | Request results starting from the given offset. |
pageSize inherited | number | The number of places that should be sent in the response for a single request. |
params inherited | Additional parameters to pass in the request. | |
portal inherited | string | Base url for the portal you want to make the request to. Defaults to authentication.portal if authentication exists, otherwise to 'https://www.arcgis.com/sharing/rest'. |
rawResponse inherited | boolean | Return the raw response |
searchText inherited | string | Free search text for places against names, categories etc. |
signal inherited | AbortSignal | An AbortSignal object instance; allows you to abort a request and via an AbortController. |
suppressWarnings inherited | boolean | Suppress any ArcGIS REST JS related warnings for this request. |
xmax inherited | number | The maximum x coordinate, or longitude, of the search extent. |
xmin inherited | number | The minimum x coordinate, or longitude, of the search extent. |
ymax inherited | number | The maximum y coordinate, or latitude, of the search extent. |
ymin inherited | number | The minimum y coordinate, or latitude, of the search extent. |
authentication
authentication: string | IAuthenticationManager
The instance of ApiKey
, ArcGISIdentityManager
or ApplicationSession
to use to authenticate this request. A token may also be passed directly as a string however using the built in authentication managers is encouraged.
categoryIds
categoryIds: string[]
Filters places to those that match the category Ids.
Places will be returned if they match any of the category Ids. If this property is not set, places will be returned regardless of their category.
You can obtain information on category Ids from theplaces/categories
endpoint. For example, to filter for places
where the category is "Bicycle Store", include the categoryId17117
in this property.
You can search up to a maximum of 10
category Ids.
credentials
credentials: RequestCredentials
A string indicating whether credentials (cookies) will be sent with the request. Used internally for authentication workflows.
headers
headers: { [key: string]: any }
Additional Headers to pass into the request.
Type declaration
- [key: string]: any
hideToken
hideToken: boolean
Prevents the token from being passed in a URL Query param that is saved in browser history. Instead, the token will be passed in POST request body or through X-Esri-Authorization header. NOTE: This will force POST requests in browsers since auth header is not yet supported by preflight OPTIONS check with CORS.
maxUrlLength
maxUrlLength: number
If the length of a GET request's URL exceeds maxUrlLength
the request will use POST instead.
offset
offset: number
Request results starting from the given offset.
This parameter works with the pageSize
parameter to fetch results from
subsequent pages. For example, with a page size of 2, setting theoffset
to 2
would return the 3rd and 4th results.
Regardless of paging, the maximum number of places that can be returned
in total is 200
.
pageSize
pageSize: number
The number of places that should be sent in the response for a single request.
You can set this to any value up to 20
when you need to control the
size of responses that your app downloads.
If the query results in more than this page size, then the response
object will contain a pagination.nextUrl
. This can be used to request
the next page of results.
Regardless of paging, the maximum number of places that can be returned
in total is 200
.
The default pageSize
is 10.
portal
portal: string
Base url for the portal you want to make the request to. Defaults to authentication.portal if authentication exists, otherwise to 'https://www.arcgis.com/sharing/rest'.
searchText
searchText: string
Free search text for places against names, categories etc.
signal
signal: AbortSignal
An AbortSignal object instance; allows you to abort a request and via an AbortController.
suppressWarnings
suppressWarnings: boolean
Suppress any ArcGIS REST JS related warnings for this request.
xmax
xmax: number
The maximum x coordinate, or longitude, of the search extent.
This is the furthest east that will be searched.
xmin
xmin: number
The minimum x coordinate, or longitude, of the search extent.
This is the furthest west that will be searched.