Geocoding Augmentation
Add latitude and longitude to place names or addresses, or find the closest place for coordinates, using Google Maps, OpenStreetMap or another provider.
This data source connector provides detailed data for locations specified by their names, addresses, or coordinates.
Before you start
You need
- A table in Storage with the input: one column with location names or addresses, or two columns with latitude and longitude. The sample files below work for a first test.
- An API key for the provider, unless you use
openstreetmap, which needs none. Google Maps for Business needs a client ID and a private key instead. See Providers.
What each tab needs
- Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
- UI tab a browser.
- CLI / API tab kbagent, connected to your project. The checks only read.
Configuration
Section titled “Configuration”Create a new configuration of the Geocoding Augmentation connector.
Augment Locations
Section titled “Augment Locations”In this case, specify the location. The data source connector will fetch its geographical latitude and longitude using a specified provider. Specify one or more tables which have exactly one column with textual specification of the location. If the source table does not meet these requirements, edit the input mapping details accordingly.
You can test the extraction on this sample file.
Upload it to the in.c-main bucket in Storage first and call it locations.
Specify a single table in the output mapping
and select the geocode method in the configuration. You can use the openstreetmap provider for free.
(The names of the input and CSV files are arbitrary, and so are the names of the columns.)

Augment Coordinates
Section titled “Augment Coordinates”In this mode of operation, specify the geographical latitude and longitude. The connector will then fetch information about the closest place found on the map of the given provider. Specify one or more tables which have exactly two columns; the first column with a latitude, the second one with a longitude. If the source table does not meet these requirements, edit the input mapping details accordingly.
You can test the extraction on this sample file. Specify a single table in the output mapping, and select the reverse method in the configuration. (The names of the input and CSV files are arbitrary, so are the names of the columns.)

Save the configuration and click Run Component.
Check:
Did the latest job of my Geocoding Augmentation configuration succeed, and how many rows and which columns does its output table have?Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.
The job ends with status Success and the table in your output mapping has the results: latitude and longitude for the geocode method, details of the closest place for the reverse method.
kbagent job list --component-id keboola.ag-geocoding --config-id 123456789 --limit 1kbagent storage table-detail --table-id in.c-main.my-resultsReplace 123456789 with your configuration ID and in.c-main.my-results with the table in your output mapping: status shows whether the job succeeded, and columns and rows_count show the results.
Providers
Section titled “Providers”In the component configuration, specify different providers of the location data. Usage limits and the result data may differ between various providers.
Some of the providers require the locale parameter to be set. If you are unsure, leave it empty or use us.
The following are the available providers that will be queried for the data:
- google_maps - Google Maps (opens in a new tab) provider, needs parameter apiKey with your access key to the API (you need “Server” type of key).
- google_maps_business - Google Maps (opens in a new tab) for Business provider, needs parameters clientId and privateKey.
- bing_maps - Bing Maps (opens in a new tab) provider, needs attribute apiKey.
- yandex - Yandex (opens in a new tab) provider, needs attribute apiKey; locale parameter may be one of these values: uk-UA, be-BY, en-US, en-BR, tr-TR.
- map_quest - MapQuest (opens in a new tab) provider, needs parameter apiKey.
- tomtom - TomTom (opens in a new tab) provider, needs parameter apiKey, parameter locale may have one of these values: de, es, fr, it, nl, pl, pt, sv.
- opencage: OpenCage (opens in a new tab) provider, needs parameter apiKey.
- openstreetmap: OpenStreetMap (opens in a new tab) provider, does not need any API key.
Was this page helpful?
Thank you for helping improve Keboola's documentation!