- Create a
Config.toml
file in the root directory and add the below content.
geocodingAPIKey = "<GEOCODING_API_KEY>"
- Obtain a Google API key and replace with
<GEOCODING_API_KEY>
.
Run the following command from the root directory of the sample.
$ bal run
$ curl -X POST -d '{"customerId": "CUST0001", "address": "1600 Amphitheatre Parkway,Mountain View,CA"}' http://localhost:8080/api/v1/customerWithGeoCode