Geocoding

GeoLocationConfig — geocoding data source for address rows.

class GeoLocationConfig(sheet_name, address_column, longitude_column, latitude_column)[source]

Geocodes address rows and writes longitude/latitude back into the same sheet.

Parameters:
  • sheet_name (str) – Source sheet containing the address rows.

  • address_column (str) – Column name supplying the free-text address.

  • longitude_column (str) – Column receiving the geocoded longitude.

  • latitude_column (str) – Column receiving the geocoded latitude.

set_table_name(table_name)[source]

Use a structured table rather than a sheet for the source rows.

Return type:

GeoLocationConfig

set_preserve_existing_data(preserve)[source]

Skip geocoding rows that already have coordinates.

Return type:

GeoLocationConfig

set_latitude_bounds(lower, upper)[source]

Reject geocoded latitudes outside the given bounds.

Return type:

GeoLocationConfig

set_longitude_bounds(lower, upper)[source]

Reject geocoded longitudes outside the given bounds.

Return type:

GeoLocationConfig

set_region(region)[source]

Bias the geocoder towards a region (e.g., "AU").

Return type:

GeoLocationConfig

set_live_update(live_update)[source]

Re-geocode immediately when the address column changes in the UI.

Return type:

GeoLocationConfig

set_run_on_data_import(run)[source]

Run geocoding automatically as part of data import.

Return type:

GeoLocationConfig

property type: DataSourceType

The DataSourceType discriminator for this configuration.