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

Location obfuscation for sites sometimes does not work for whole numbers #266

Closed
atruskie opened this issue Mar 10, 2016 · 0 comments
Closed

Comments

@atruskie
Copy link
Member

Location obfuscation does not work (for sites) when the latitude or longitude are entered as whole numbers.

Steps to reproduce:

  1. change a site's location to -23,127
  2. load the site's json in a browser (e.g. https://staging.ecosounds.org/projects/645/sites/754.json)

Acutal:
custom_latitude":-23.0,"custom_longitude":127

results vary

Expected: random jitter added to both numbers.

As results vary, it seems like that maybe jitter is being added before rounding occurs. In cases where the location numbers are whole numbers, the very small jitter effect is sometimes even rounded away completely.

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