0

Can we get current geo location of my alexa device? I have search on google but most saying we can get address of linked account using address API.

But I have to get data based on geo location.

Is it possible to get current geo location of my alexa device?

Suneet Patil
  • 608
  • 9
  • 21
user3256309
  • 29
  • 10

2 Answers2

1

Yes, you can get

  1. Device Full address
  2. Country/Region and postal code

You will have to enable Device Address in developer portal under Permission tab. Then you will have to either explicitly grant "resource" access to your skill under Settings menu of your alexa skill or you will have to send a permission card to the user for consent.

Once the permission is granted, fire a GET request with deviceId and apiAccessToken to the specified apiEndpoint

Endpoint for Full Address is: /v1/devices/*deviceId*/settings/address

Country/region & postal code: /v1/devices/*deviceId*/settings/address/countryAndPostalCode

More info here

Hope this helps!

johndoe
  • 4,387
  • 2
  • 25
  • 40
  • Thanks for your reply but I have to use current latitude and longitude and send to webservice call to receive data based on latitude and longitude. – user3256309 Jul 26 '18 at 10:13
  • You cant get longitude and latitude from Alexa. What you can do is to call other external services with the postal code and get an approximate longitude and latitude. – johndoe Jul 26 '18 at 10:31
0

You can get location of device only by fetching the address api but it gives the address of the linked account for the particular device and which user has given during registering the device to amozon account using alexa.amazon.com.

Currently we may not get geo location of device without the above steps.

Suneet Patil
  • 608
  • 9
  • 21