Skip to content

AWS GeoLocation endpoint #433

@yaksvk

Description

@yaksvk

I think AWS changed their endpoint for using the LocationService from geo to places.geo.
I had to override the endpoint URL to get it to work:

...
my $REGION = 'eu-west-1';

my $geo = Paws->service(
    'LocationService',
    ...,
    region => $REGION,
    endpoint => URI->new("https://places.geo.${REGION}.amazonaws.com"),
);
my $response = $geo->SearchPlaceIndexForText( ... );
...

sub service { 'geo' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions