Bracket locality
Explanation on how to use brackets in the “t” parameter to differentiate the locality when searching with Cercalia’s Suggest API.
Optional: Using Brackets to Differentiate the Locality from the Rest of the Address
Request
Request Parameters:
Parameter | Description |
---|---|
t | Text to search. It can contain the address (street, number, postal code). The locality name is enclosed in square brackets at the end of the text. Any part of the text after the locality will be ignored. |
It is important to note that when using this search method, you must include only the address and the locality, as it matches exclusively against the street and locality fields.
Examples:
Input:
Calle de Barcelona 16 [Madrid]
Formatted Parameter:&t=Calle+de+Barcelona+16,%20%5BMadrid%5D
Input:
Calle de Barcelona 16, 28012 [Madrid]
Formatted Parameter:&t=Calle+de+Barcelona+16,%2028012%20%5BMadrid%5D
The rest of the parameters are the same as in previous suggestion requests.
Response
The response format is identical to previous suggestion requests.