import PlacesParameters from "@arcgis/core/rest/support/PlacesParameters.js";const PlacesParameters = await $arcgis.import("@arcgis/core/rest/support/PlacesParameters.js");- Inheritance:
- PlacesParameters→
Accessor
- Subclasses:
- FetchPlaceParameters, PlacesQueryParameters
- Since
- ArcGIS Maps SDK for JavaScript 4.27
The following properties define common properties for use with places. Please see the sublasses that extend this class for more information about working with places.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
See the properties table for a list of all the
properties that may be passed into the constructor.
Properties
Any properties can be set, retrieved or listened to. See the
Watch for changes
topic.
apiKey
Property
An authorization string used to access a resource or service. API keys are generated and managed in the portal. An API key is tied explicitly to an ArcGIS account; it is also used to monitor service usage. Setting a fine-grained API key on a specific class overrides the global API key.
- See also
url
Property
- Type
- string
URL to the places service. The places service is a ready-to-use service that can search for businesses and geographic locations around the world. It allows you to discover, locate, and return detailed information about a place.
- Default value
- "https://places-api.arcgis.com/arcgis/rest/services/places-service/v1"