Places helpers for ArcGIS REST JS.
Install
npm install @esri/arcgis-rest-places
Import
@esri/arcgis-rest-places
is distributed as both ES Modules and Common JS modules.
import * as placesTools from "@esri/arcgis-rest-places"
const placesTools = require("@esri/arcgis-rest-places");
CDN
You can use @esri/arcgis-rest-places
as an ES Module from the esm.run CDN.
<script type="module">
import * as placesTools from "https://esm.run/@esri/arcgis-rest-places@1.1.0";
</script>
You can also use @esri/arcgis-rest-places
from a script tag. All exports will be added to a global arcgisRest
object.
<script
src="https://unpkg.com/@esri/arcgis-rest-places@1.1.0/dist/bundled/places.umd.js"
integrity="sha512-g4MNRLDpZW4tvSCDOsaZviIOq9R4m5RpNjCCPfyVe3G5iFKNwB9MNLmhIUnpQMxRU5wz65xy6ervHbenbv4TsA==">
</script>
Exports
- findPlacesNearPoint
- findPlacesWithinExtent
- getCategories
- getCategory
- getPlaceDetails
- IFindPlaceWithinExtentOptions
- IFindPlacesNearPointOptions
- IFindPlacesNearPointResponse
- IFindPlacesWithinExtentResponse
- IGetCategoriesOptions
- IGetCategoriesResponse
- IGetCategoryOptions
- IGetCategoryResponse
- IGetPlaceOptions
- IGetPlaceResponse