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

Add option to use browser geolocation feature to locate city #85

Open
e-alfred opened this issue Jan 17, 2020 · 1 comment
Open

Add option to use browser geolocation feature to locate city #85

e-alfred opened this issue Jan 17, 2020 · 1 comment

Comments

@e-alfred
Copy link
Collaborator

It would be great to have the ability to use the geolocation feature of the browser to find the current city somebody is located in. This would ease searching and adding cities and make it more convenient for users who travel a lot for example. It is also something that could improve #83.

@almereyda
Copy link

This is also available in the official weather_status app bundled with nextcloud/server. This happens completely client side:

https:/nextcloud/server/blob/777fe3bf18f2a6c6887d623eb889cc7895823ebe/apps/weather_status/src/App.vue#L274-L281

https:/nextcloud/server/blob/777fe3bf18f2a6c6887d623eb889cc7895823ebe/apps/weather_status/src/App.vue#L313-L320

Eventually one could even share some basic methods with them, despite them using another API provider.

https:/nextcloud/server/blob/e10cad4a718422b8b9d19546cc61cb39e4c0ee26/apps/weather_status/lib/Service/WeatherStatusService.php#L383

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

No branches or pull requests

2 participants