Skip to content

Latest commit

 

History

History

enrich-data

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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