- You have many addresses to enrich at once and want a single batch job rather than one HTTP call per address.
- You want asynchronous processing: submit once, poll for completion, and download a single output file containing all results.
- You want to mix data sources (e.g., Ping Geocoding
PG, Ping HazardPH) across a batch, optionally overriding sources on a per-location basis.
1. Start Bulk Enhance Job
The first API call to make is Start Bulk Enhance Job. This endpoint allows a user to submit a batch of locations to Ping for enhancement.sources accepts datasource codes (e.g., PG, PH) from List Datasources, which returns the datasources your account has access to along with each one’s input requirements and geographic coverage.
Example code:
enhance_multiple_locations.py
Python output
2. Check Bulk Enhance Job Status
The second API call to make is Check Bulk Enhance Job Status. This endpoint allows a user to check the status of a previously submitted Bulk Enhance job using theid returned from the first step.
The user should poll this endpoint until the job status is either COMPLETE or FAILED.
Example code:
enhance_multiple_locations.py
Python output
3. Fetch Bulk Enhance Job Result Data
The third API call is Fetch Bulk Enhance Job Result Data. This endpoint allows a user to download the resultant file for a completed Bulk Enhance job using theid and filename returned from the previous step.
Example code:
enhance_multiple_locations.py
Python output
Python Demo
Download a ready-to-run Python demo of this workflow here: Download Python Script hereenhance_multiple_locations.py