Package com.massifmaps.geocoding
Class ReverseGeocodingRequest
java.lang.Object
com.massifmaps.geocoding.ReverseGeocodingRequest
A reverse geocoding request describing search location.
-
Constructor Summary
ConstructorsConstructorDescriptionReverseGeocodingRequest(Projection projection, MapPos location) Constructs a new ReverseGeocodingRequest object from a projection and location. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.getCustomParameter(String param) Returns the custom parameter value of the request.Returns the location of the query.Returns the projection of the query.floatReturns the search radius (in meters).inthashCode()Returns the hash value of this object.voidsetCustomParameter(String param, Variant value) Sets a custom parameter value for the the request.voidsetSearchRadius(float radius) Sets the search radius (in meters).
The default search radius is 100 meters.toString()Creates a string representation of this request object, useful for logging.
-
Constructor Details
-
ReverseGeocodingRequest
Constructs a new ReverseGeocodingRequest object from a projection and location.- Parameters:
projection- The projection to use for the result and location data.location- The location of the query.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getLocation
Returns the location of the query.- Returns:
- The location of the query.
-
getSearchRadius
public float getSearchRadius()Returns the search radius (in meters).- Returns:
- The search radius in meters.
-
setSearchRadius
public void setSearchRadius(float radius) Sets the search radius (in meters).
The default search radius is 100 meters.- Parameters:
radius- The new search radius in meters.
-
getProjection
Returns the projection of the query.- Returns:
- The projection of the query.
-
getCustomParameter
Returns the custom parameter value of the request.- Parameters:
param- The name of the parameter to return.- Returns:
- The value of the parameter. If the parameter does not exist, empty variant is returned.
-
setCustomParameter
Sets a custom parameter value for the the request.- Parameters:
param- The name of the parameter.value- The new value for the parameter.
-
toString
Creates a string representation of this request object, useful for logging.
-