geocoding_lambda/lambda_function.py [29:64]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PLACE_INDEX = os.environ['PLACE_INDEX']

logging.basicConfig(level=logging.INFO)

client_config = Config(
    user_agent="Redshift/1.0 Amazon Location Service UDF",
    retries = {
        'mode': 'standard'
    }
)
client = boto3.client(
    "location",
    config=client_config
)

""" 
Valid request:
{
  "arguments": [
    [
      "Englisch Garten",
      "[48.192087, 11.617126]",
      "[\"DEU\"]"
    ]
  ]
}
"""
def handler(event, context):
    logger = logging.getLogger(__name__)
    
    arguments = event["arguments"]
    logger.debug('Received arguments: %s.', arguments)

    results = []
    try:
        for arg in arguments:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



reverse_geocoding_lambda/lambda_function.py [27:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PLACE_INDEX = os.environ['PLACE_INDEX']

logging.basicConfig(level=logging.INFO)

client_config = Config(
    user_agent="Redshift/1.0 Amazon Location Service UDF",
    retries = {
        'mode': 'standard'
    }
)
client = boto3.client(
    "location",
    config=client_config
)

"""
Valid request
{
  "arguments": [
    [48.199323, 11.612921]
  ]
}
"""
def handler(event, context):
    logger = logging.getLogger(__name__)

    arguments = event["arguments"]

    logger.debug('Received arguments: %s.', arguments)

    results = []

    try:
        for arg in arguments:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



