Skip to content

Files

Latest commit

b2c9b09 · Nov 13, 2023

History

History

enrich-data

Steps to run the sample

1. Configuring the Config.toml file

  1. Create a Config.toml file in the root directory and add the below content.
geocodingAPIKey = "<GEOCODING_API_KEY>"  
  1. Obtain a Google API key and replace with <GEOCODING_API_KEY>.

2. Running the sample

Run the following command from the root directory of the sample.

$ bal run

3. Test the sample

$ curl -X POST -d '{"customerId": "CUST0001", "address": "1600 Amphitheatre Parkway,Mountain View,CA"}' http://localhost:8080/api/v1/customerWithGeoCode