Back to all examples
Batch geocoding with error handling NodeJS
Geocode several addresses in parallel from Node.js and report each failure by its SDK error code
Each address in the batch prints its match or why it failed, read from the error’s fields rather than its message.
SDKErrorcarries acodeandcanRetry, so a bad request and a busy service are told apart by property, andSDKServiceErroradds the HTTPstatus.geocodeOnefinding nothing is a plainError.- Request validation
rejects the latitude-first position before sending, naming the field in
issues. retryretries rate-limited calls with backoff, and oneAbortSignal.timeoutcaps the whole batch.
Related examples
Along route search service NodeJS
Find fast chargers within a one-minute detour of a route, from a Node.js process
Getting Started
Search and Geocoding
Routing
Electric Vehicles
Node.js
Geocode service NodeJS
Server-side geocoding service with NodeJS implementation
Getting Started
Search and Geocoding
Node.js
Geometry search service NodeJS
Server-side geometry search with NodeJS implementation
Getting Started
Search and Geocoding
Geometry
Node.js
POI categories service NodeJS
Find POI categories by keyword, best match first, and search places with their codes in NodeJS
Getting Started
Search and Geocoding
Node.js