-
Notifications
You must be signed in to change notification settings - Fork 3
Running the Geocoder
omerkahveciuf edited this page Dec 4, 2025
·
2 revisions
This guide provides step-by-step instructions for running the Exposome Geocoder to convert addresses or coordinates into FIPS codes.
The geocoder uses Docker containers to execute the DeGAUSS toolkit, which performs:
- Address → Coordinates: Converts street addresses to latitude/longitude
- Coordinates → FIPS: Converts coordinates to Census Tract (FIPS 11-digit) codes
- Docker Desktop (required)
- WSL2 (Windows users only)
- Terminal/Command Line access
Before running the geocoder, ensure:
- Docker Desktop is running
- Input files are prepared (see Input Preparation)
- Working directory is set up
Ensure your input CSV file is in the input folder:
ls input_address/Use the following Docker command to run the geocoder:
docker run -it --rm \
-v "$(pwd)":/workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
-e HOST_PWD="$(pwd)" \
-w /workspace \
prismaplab/exposome-geocoder:1.0.3 \
/app/code/Address_to_FIPS.py -i <input_folder_path>Example:
If your input folder is input_address/:
docker run -it --rm \
-v "$(pwd)":/workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
-e HOST_PWD="$(pwd)" \
-w /workspace \
prismaplab/exposome-geocoder:1.0.3 \
/app/code/Address_to_FIPS.py -i input_address- OMOP CDM database with required tables
- Database credentials (username, password, server, port, database name)
- Network access to the database server
docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":/workspace \
-e HOST_PWD="$(pwd)" \
-w /workspace \
prismaplab/exposome-geocoder:1.0.3 \
/app/code/OMOP_to_FIPS.py \
--user <your_username> \
--password <your_password> \
--server <server_address> \
--port <port_number> \
--database <database_name>docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":/workspace \
-e HOST_PWD="$(pwd)" \
-w /workspace \
prismaplab/exposome-geocoder:1.0.3 \
/app/code/OMOP_to_FIPS.py \
--user omop_user \
--password SecurePass123 \
--server db.example.com \
--port 5432 \
--database omop_cdmAfter the geocoder finishes, verify:
# Check output directory was created
ls -la output/
# List generated files
ls -la output/You should see:
- Timestamped ZIP files with results
-
LOCATION.csvandLOCATION_HISTORY.csv(if provided as input) - Log files (if any errors occurred)
Once geocoding completes successfully:
- Inspect outputs: See Understanding Outputs
- Validate results: Check for geocoding quality and completeness
- Proceed to linkage: If needed, continue to GIS Linkage