java.lang.Object | |
↳ | com.carto.geocoding.GeocodingRequest |
A geocoding request describing text-based query and other optional constraints.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GeocodingRequest(Projection projection, String query)
Constructs a new GeocodingRequest object from a projection and a string-based query.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
Variant |
getCustomParameter(String param)
Returns the custom parameter value of the request.
| ||||||||||
MapPos |
getLocation()
Returns the location attribute of the request.
| ||||||||||
float |
getLocationRadius()
Returns the location radius attribute of the request (in meters).
| ||||||||||
Projection |
getProjection()
Returns the projection of the request.
| ||||||||||
String |
getQuery()
Returns the text-based query of the request.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
| ||||||||||
void |
setCustomParameter(String param, Variant value)
Sets a custom parameter value for the the request.
| ||||||||||
void |
setLocation(MapPos pos)
Sets the location attribute of the request.
| ||||||||||
void |
setLocationRadius(float radius)
Sets the location radius attribute of the request.
| ||||||||||
String |
toString()
Creates a string representation of this request object, useful for logging.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new GeocodingRequest object from a projection and a string-based query.
projection | The projection to use for the result and location data. |
---|---|
query | The text-based query. |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the custom parameter value of the request.
param | The name of the parameter to return. |
---|
Returns the location attribute of the request.
The matching address near the specified location (up to a specified radius) are preferred.
Returns the location radius attribute of the request (in meters).
Returns the projection of the request.
Returns the text-based query of the request.
Returns the hash value of this object.
Sets a custom parameter value for the the request.
param | The name of the parameter. For example, "ranking.location_sigma". |
---|---|
value | The new value for the parameter. |
Sets the location attribute of the request.
The matching address near the specified location (up to a specified radius) are preferred.
pos | The new location for the request. |
---|
Sets the location radius attribute of the request.
The default is 0, which means that location based ranking is not applied.
radius | The location radius attribute of the request in meters. |
---|
Creates a string representation of this request object, useful for logging.