What’s geocoding API, and when would I use it?

Geocoding is the process of converting a textual address to a geographic coordinate (latitude and longitude). Once an address is converted into a coordinate, you can do various operations to it, such as finding its distance from another location. You can also use it to normalize addresses, as one coordinate can possibly be represented by many different addresses. You would most likely want to store this coordinate in your database tables.
There is also the reverse geocoding process, where you are converting a geographic coordinate to an address. It can be useful in certain circumstances.


You’d need to install the Integration Library package using the LANSA Package Manager.
See this usage guide for how to use the LANSA Package Manager.

Running the Sample Application

This is what you should see:

Getting a Google API Key

Have a look at this guide from Google for how to get an API key. You may need to enable billing to use the geocoding API.
Note that following the steps in this sample may result in Google charging you or your organisation, so please read Google’s terms and conditions carefully before enabling billing.

Configuring Integration Library to Use the New API Key

Once you have obtained a Google API key, you’d need to configure the Integration Library to use the new API key.
Have a look at this guide for how to configure your Google API Key using the Integration Library’s configuration tool.