I'm running into a no attribute error with the latest version of boto3.
As far as I'm concerned, I'm referencing the latest documentation (here -- note '/api/latest' in the URL), so I'm at a loss as to what I'm doing wrong.
The code is really no different than any other boto3 client call:
response = boto3.client('location').search_place_index_for_suggestions(
BiasPosition=response['Results'][0]['Place']['Geometry']['Point'],
FilterCountries=['USA'],
IndexName='CTA-Place-Index',
MaxResults=1,
Text='Major Airport'
)
I know the client name is correct, because I'm making a similar call immediately prior to the the above block, with this:
response = boto3.client('location').search_place_index_for_text(
FilterCountries=['USA'],
IndexName='CTA-Place-Index',
MaxResults=1,
Text='90210'
)
... which works fine ...
Anyone have any ideas?
UPDATE: no luck
Perhaps someone else could run this and verify that this is affecting more than just me:
client = boto3.client('location')
object_methods = [method_name for method_name in dir(client) if callable(getattr(client, method_name))]
print(object_methods)
Credit for the "introspection" code: here