Package com.iizix.user.geo
Class Nearby
java.lang.Object
com.iizix.user.geo.Nearby
The nearby class with locations and distance.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- Nearby- (UserLocation location, double distance, boolean isElevationUsed) Constructor.
- Method SummaryModifier and TypeMethodDescription- booleanChecks for equality.- doubleGets the distance measured to the user in question.Gets the user location.- booleanFlag indicating elevation is taken into account (if present).- toString()String representation of the class.
- Constructor Details- NearbyConstructor.- Parameters:
- location- The user location.
- distance- The distance in meters.
- isElevationUsed- Flag indicating elevation is taken into account (if present).
- Throws:
- NullPointerException- If userLocation is null.
 
 
- Method Details- getUserLocationHistoryGets the user location.- Returns:
- The user location instance.
 
- getDistancepublic double getDistance()Gets the distance measured to the user in question.- Returns:
- A distance in meters, perhaps taking into account the elevation.
 
- isElevationUsedpublic boolean isElevationUsed()Flag indicating elevation is taken into account (if present).
- equalsChecks for equality.
- toStringString representation of the class.