Bounds for assets

GET
https://api.woosmap.com/stores/search/bounds

Used to retrieve Bounds for assets.

Authorization

key
apiKey query

A Public key generated specifically to authenticate API requests on the front side. See how to register a Public API Key.

Referer
apiKey header

The Referer HTTP request header is mandatory when using PublicApiKeyAuth. In browser environment, the Referer is set by the browser itself and cannot be overridden.

private_key
apiKey query

A Private key generated specifically to authenticate API requests on server side. Required for Data management API. See how to register a Private API Key.

Query Parameters

query
string

Search query combining one or more search clauses. Each search clause is made up of three parts structured as field : operator value. , e.g. name:="My cool store"

Vocabulary

  • Field: attribute of the Store that is searched, e.g. the attribute name of the store.

  • Operator: test that is performed on the data to provide a match, e.g. =. Each field has a default operator. If none operator follow the :, the default one is used.

  • Value: the content of the attribute that is tested, e.g. the name of the store "My cool store".

Combine clauses with the conjunctions AND or OR, and negate the query with NOT.

Fields

  • type: An element is contained within type collection. e.g. type:"myType"

  • tag: An element is contained within tag collection. e.g. tag:"myTag"

  • city: text matching: the value match the city field. e.g. city:="Paris"

  • country: text matching: the value match the countryCode field. e.g. country:="FR"

  • name: text matching: the value match the name field. e.g. name:="myName"

  • idstore: text matching: the value match the idstore field. e.g. idstore:="myIdStore"

  • user: concerns all fields inside user_properties. text matching or numerical comparison. e.g. user.myAttribute:="myValue"

  • localized: used for localizedNames to search in native language. text matching in collection: the value match one of the the localizedNames. e.g. localized:="centro"

userProperties field has no restriction regarding the data you can put in it (Arrays, Object, Boolean, String, Numeric...) but you can only query for text matching or numerical comparison.

Operators

  • : : Default and mandatory operator. For type and tag fields, define that an element is contained within a collection.

  • = : The content of a string or a number is equal to the other.

  • > : A number is greater than another.

  • < : A number is smaller than another.

  • >= : A number is greater than or equal to another.

  • <= : A number is smaller than or equal to another.

  • AND : Return assets that match both clauses.

  • OR : Return assets that match either clauses.

  • NOT : Negates a search clause.

For compound clauses, you can use parentheses to group clauses together. For example: (type:"type1" OR type:"type2") AND tag:"hockey" You can use NOT operator to negates a search clause. For example: not type:"type1"

Example: name:'My cool store'|type:'click_and_collect'
lat
number

Latitude bias for the results. Should be pass with lng.

Example: 5.2
lng
number

Longitude bias for the results. Should be pass with lat.

Example: 3.5
radius
number

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).

Example: 3000

Response

200 application/json

Bounds successfully retrieved

bounds
object

The bounds object

Show 4 propertiesHide 4 properties
bounds. west
number

The west longitude of bounds

Example: -0.14408
bounds. south
number

The south latitude of bounds

Example: -51.5088
bounds. east
number

The east longitude of bounds

Example: -0.14408
bounds. north
number

The north latitude of bounds

Example: 51.5088

Errors

401

Unauthorized. Incorrect authentication credentials.

application/json
detail
string

Details for the credentials error

Example: Incorrect authentication credentials. Please check or use a valid API Key
403

Forbidden. This Woosmap API is not enabled for this project.

application/json
detail
string

Details for the forbidden error message

Example: This Woosmap API is not enabled for this project.
429

Too Many Requests. The rate limit for this endpoint has been exceeded.

application/json
detail
string

Details for the Over Query Limit error message

Example: The rate limit for this endpoint has been exceeded
        curl -L 'https://api.woosmap.com/stores/search/bounds?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY' \
-H 'Referer: http://localhost'

    
        const requestOptions = {
  method: "GET",
  redirect: "follow"
};

fetch("https://api.woosmap.com/stores/search/bounds?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

    
        import requests

url = "https://api.woosmap.com/stores/search/bounds?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY"

payload = {}
headers = {
    'Referer': 'http://localhost'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)


    
        
{
"bounds": {
"west": -0.14408,
"south": 51.5088,
"east": -0.14408,
"north": 51.5088
}
}
        
{
"detail": "Incorrect authentication credentials. Please check or use a valid API Key"
}
        
{
"detail": "This Woosmap API is not enabled for this project."
}
        
{
"detail": "The rate limit for this endpoint has been exceeded"
}
Was this helpful?