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

The example at seedtip.com is not working #1

Open
korrio opened this issue Aug 23, 2015 · 3 comments
Open

The example at seedtip.com is not working #1

korrio opened this issue Aug 23, 2015 · 3 comments

Comments

@korrio
Copy link

korrio commented Aug 23, 2015

The API returns empty value

@pauldessert
Copy link
Owner

It's working for me. This is a pulling from a U.S. .gov site. Are you using a U.S. zip code?

@phil-xor31
Copy link

When you try to use current location, userCords is coming back undefined. Maybe it is because I am running without https on my local server and you see this error in Chrome Developer Console: getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

@phil-xor31
Copy link

After running several times, I found that getCurrentPosition is working some of the time. If you add a a timeout as the third parameter, you will actually see it fail.

navigator.geolocation.getCurrentPosition(success, error, {timeout:10000});

See http://stackoverflow.com/questions/3397585/navigator-geolocation-getcurrentposition-sometimes-works-sometimes-doesnt for more info.

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

3 participants