web / lib/jobs/handlers/geocode-batch-job
lib/jobs/handlers/geocode-batch-job
Defines the job handler for geocoding unique locations from an imported file.
This job extracts unique location values from the location field and geocodes them. Unlike the previous implementation, it does not process coordinates (lat/lon) - those are read directly from field mappings during event creation.
The geocoded results are stored as a map from location string to coordinates, allowing multiple rows with the same location to share the same geocoding result.
Variables
geocodeBatchJob
constgeocodeBatchJob:object
Type declaration
slug
slug:
"geocode-batch"=JOB_TYPES.GEOCODE_BATCH
handler()
handler: (
context) =>Promise<{output:Record<string,unknown>; }>
Parameters
context
Returns
Promise<{ output: Record<string, unknown>; }>
Last updated on