Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference the users location #50

Closed
aBigSchwein opened this issue Feb 22, 2016 · 4 comments
Closed

Reference the users location #50

aBigSchwein opened this issue Feb 22, 2016 · 4 comments

Comments

@aBigSchwein
Copy link

I have a skill that needs location based services. Ex: "Alexa, what's the nearest store to my location?"

Is there a legit intent or method to reference otherwise I was planning on using the request.connection.remoteAddress value. Does the alexa-app request object support that functionality?

@OverloadUT
Copy link
Contributor

There is no support for getting the user's location unfortunately.

Using request.connection.remoteAddress will not work, as all requests to your endpoint come from the Alexa cloud in AWS's US-East region, and not from the Echo devices themselves.

You would probably need to ask the user to define their location.

@aBigSchwein
Copy link
Author

Strange, I thought that might be the case.

It's weird tho that the documentation for ASK states these examples:
“Alexa, ask StubHub what events are happening this weekend near me?”
“Alexa, ask Glympse, when will Jack get here?”

@OverloadUT
Copy link
Contributor

In both of those cases I expect that the app is linked to the user's account, which likely has "home" preferences already set. Definitely for Glympse at least.

@aBigSchwein
Copy link
Author

Damn. Okay thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants