Class LongitudeOffsetGpsAnonymizer
Base class for anonymizers that operate by adding a random offset
to the longitude of a GPS coordinate pair. Adding an offset to
latitude is a generally bad idea because the distance between degrees
of longitude vary tremendously across the latitudes.
Inheritance
System.Object
LongitudeOffsetGpsAnonymizer
Assembly: SensusAndroid.dll
Syntax
public abstract class LongitudeOffsetGpsAnonymizer : Anonymizer
Constructors
LongitudeOffsetGpsAnonymizer()
Declaration
protected LongitudeOffsetGpsAnonymizer()
Methods
Apply(Object, Protocol)
Declaration
public override object Apply(object value, Protocol protocol)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Protocol |
protocol |
|
Returns
Type |
Description |
System.Object |
|
Overrides
GetOffset(Protocol)
Declaration
protected abstract double GetOffset(Protocol protocol)
Parameters
Returns
Type |
Description |
System.Double |
|
GetOffset(Random)
Declaration
public static double GetOffset(Random random)
Parameters
Type |
Name |
Description |
System.Random |
random |
|
Returns
Type |
Description |
System.Double |
|