Skip to content

AWS GeoLocation endpoint #433

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' }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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