Skip to content

Instantly share code, notes, and snippets.

@MikeTrizna
Last active August 29, 2015 14:15
Show Gist options
  • Save MikeTrizna/418ca36b2eb5808b7b7a to your computer and use it in GitHub Desktop.
Save MikeTrizna/418ca36b2eb5808b7b7a to your computer and use it in GitHub Desktop.
GPS Fuzzing Example - IBUNAM Computer Lab
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MikeTrizna
Copy link
Author

The real "decimalLatitude" and "decimalLongitude" values of this record are 19.320514 and -99.194494, but we want to "fuzz" the coordinates to protect it. To do that, we'll use the "coordinatePrecision" field.

If we choose a "coordinatePrecision" value of "1.0 (nearest degree)", "decimalLatitude" and "decimalLongitude" become 19 and -99. This means that the specimen's coordinates have been rounded to the closest whole degree, and it could have come from anywhere in the largest rectangle.

If we choose a "coordinatePrecision" value of "0.1 (nearest 10th of a degree)", "decimalLatitude" and "decimalLongitude" become 19.3 and -99.2. This means that the specimen's coordinates have been rounded to the closest whole 10th of a degree, and it could have come from anywhere in the smaller rectangle.

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