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

Geolocation Support #10

Closed
adamdriscoll opened this issue Feb 11, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@adamdriscoll
Copy link
Member

commented Feb 11, 2018

@adamdriscoll

This comment has been minimized.

Copy link
Member Author

commented Feb 20, 2018

dwcg3bhu8aaskht

@adamdriscoll

This comment has been minimized.

Copy link
Member Author

commented Feb 20, 2018

You'll be able to specify the -GeoLocation switch parameter on New-UDDashboard and when users visit the site they will prompted to allow location detection. In all endpoints for users that allowed detection, the $Location variable will be defined as follows:

@{
coords = @{
Altitude,
Longitude,
Latitude,
Heading,
Speed
}
Timestamp
}
@adam-acosta

This comment has been minimized.

Copy link

commented Apr 10, 2019

Is this supported as of today? If not, coming soon?

@adamdriscoll

This comment has been minimized.

Copy link
Member Author

commented Apr 10, 2019

Yep. This works today. You can use the -GeoLocation parameter of New-UDDashboard to turn it on. Then if a user accepts location tracking in the browser, you will have a $Location variable available in your endpoints.

https://docs.universaldashboard.io/endpoints/variables-defined-in-endpoints#variables-defined-in-endpoints

@adam-acosta

This comment has been minimized.

Copy link

commented Apr 10, 2019

Thanks! My apologies for not seeing it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.