Geocoding helpers for ArcGIS REST JS.
Install
npm install @esri/arcgis-rest-geocodingImport
@esri/arcgis-rest-geocoding is distributed as both ES Modules and Common JS modules.
import * as geocodingTools from "@esri/arcgis-rest-geocoding"const geocodingTools = require("@esri/arcgis-rest-geocoding");CDN
You can use @esri/arcgis-rest-geocoding as an ES Module from the esm.run CDN.
<script type="module">
import * as geocodingTools from "https://esm.run/@esri/arcgis-rest-geocoding@4.0.3";
</script>You can also use @esri/arcgis-rest-geocoding from a script tag. All exports will be added to a global arcgisRest object.
<script
src="https://unpkg.com/@esri/arcgis-rest-geocoding@4.0.3/dist/bundled/geocoding.umd.min.js"
integrity="sha512-acctOK1RWF7dIvk0xdtX67bAQIIeqEn/3J0G9T6WoE7OF6VDkiSkt5YALKDhfGQc4kL/UUCiEk2zkzzjvXlvbQ==">
</script>Exports
- bulkGeocode
- geocode
- getGeocodeService
- reverseGeocode
- suggest
- IAddressBulk
- IBulkGeocodeOptions
- IBulkGeocodeResponse
- IEndpointOptions
- IExtent
- IGeocodeOptions
- IGeocodeResponse
- IGetGeocodeServiceResponse
- ILocation
- IPoint
- IReverseGeocodeResponse
- ISpatialReference
- ISuggestResponse
- ARCGIS_ONLINE_BULK_GEOCODING_URL
- ARCGIS_ONLINE_GEOCODING_URL