search

fun search(query: String? = null, latLng: LatLng? = null, radius: Double? = null, encodedPolyline: String? = null, storesByPage: Int? = null, page: Int? = null, zone: Boolean? = null): SearchResponse

Search for assets

Return

AssetAutocompleteResponse

Parameters

query

Search query combining one or more search clauses. See the REST API documentation

lat

Latitude bias for the results. Should be pass with `lng`. (optional)

lng

Longitude bias for the results. Should be pass with `lat`. (optional)

radius

Unit in meters. Used to combine with lat/lng or encoded polyline. To bias the results within a given circular area. 3000 means to search for Assets that are at the most far from 3kms to search area (latlng or polyline). (optional)

encodedPolyline

Find assets nearby an encoded polyline and inside a defined radius. (optional)

storesByPage

If your request returns a high number of assets, the result will be paginated. If so, you can request assets by page using `page` and `stores_by_page` parameters (Default is 100, max is 300). (optional)

page

Page number when accessing paginated assets feature collection (optional)

zone

Returns the stores that are linked to a zone intersecting the provided lat,lng query parameters. (optional)

Throws

If the request is not correctly configured

Rethrows the OkHttp execute method exception

If the API returns an informational or redirection response

ClientException

If the API returns a client error response

ServerException

If the API returns a server error response