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 Geolocation for Mobile (JS) #5

Open
benjaminpick opened this issue Nov 20, 2014 · 2 comments
Open

Add Geolocation for Mobile (JS) #5

benjaminpick opened this issue Nov 20, 2014 · 2 comments

Comments

@benjaminpick
Copy link
Member

http://diveintohtml5.info/geolocation.html

Do this only for mobile browsers (ontouchstart)
Optional: Use "high accuracy position"

This must be optional (preferences) as it asks the user to reveal his location, and this may not be desired.

@benjaminpick
Copy link
Member Author

However, we would only get the position, not a city name (maybe use Google API coding for this). Also, the lookup happens on client side and will be passed as cookie, so it is not available on first load.

@benjaminpick
Copy link
Member Author

This requires the fallback #13 . In this way, the client-side code can set a cookie to indicate the results, and the server will use it on the second request.

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

1 participant