PRODUCTION
A zone suggestion service to fulfill a zone
Resource information |
|
Authentication |
Required |
HTTP Method |
GET |
Response |
JSON |
Version |
1 |
Resource URL
<https://mapaprop.app/api/action/portal-v2/zones/suggestions>
Parameters
Key |
Type |
Required |
Description |
term |
string |
yes |
A term for search, min 3 chars |
country |
string |
yes |
The ISO code for the country. ‣ |
limit |
int |
no |
The amount of returning records, max 100, default 10 |
Sample code
GET /api/action/portal-v2/zones/suggestions?term=buenos&country=AR HTTP/1.1
Host: mapaprop.app
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer ya29.1.AADtN_UxybTdjLw9jX6lg_SXIgc3wTtek4q2WvfETzSrz7Q6loEYoJEWd1x4qvlpGw
Response
A simple number with the total properties in our system in JSON.
Object |
Field |
Type |
Required |
Description |
Response |
types |
Object |
yes |
An object with the list of types by code |
Sample code
[
{
"country": 1,
"description": "General Güemes, General Güemes, Salta",
"localCode": "17-452-2534",
"seoUrl": "general-guemes-general-guemes-salta",
"code": "1-17-452-2534"
},
{
"country": 1,
"description": "General Alvear, General Alvear, Mendoza",
"localCode": "13-338-1974",
"seoUrl": "general-alvear-general-alvear-mendoza",
"code": "1-13-338-1974"
},
{
"country": 1,
"description": "General Alvear, General Alvear, Buenos Aires",
"localCode": "2-179-1431",
"seoUrl": "general-alvear-general-alvear-buenos-aires",
"code": "1-2-179-1431"
},
{
"country": 1,
"description": "General Lavalle, General Lavalle, Buenos Aires",
"localCode": "2-185-1469",
"seoUrl": "general-lavalle-general-lavalle-buenos-aires",
"code": "1-2-185-1469"
},
{
"country": 1,
"description": "General Arenales, General Arenales, Buenos Aires",
"localCode": "2-180-1432",
"seoUrl": "general-arenales-general-arenales-buenos-aires",
"code": "1-2-180-1432"
},
{
"country": 1,
"description": "General Hornos, General Las Heras, Buenos Aires",
"localCode": "2-184-1464",
"seoUrl": "general-hornos-general-las-heras-buenos-aires",
"code": "1-2-184-1464"
},
{
"country": 1,
"description": "General Guido, General Guido, Buenos Aires",
"localCode": "2-182-1450",
"seoUrl": "general-guido-general-guido-buenos-aires",
"code": "1-2-182-1450"
},
{
"country": 1,
"description": "General Rodriguez, General Rodriguez, Buenos Aires",
"localCode": "2-190-1065",
"seoUrl": "general-rodriguez-general-rodriguez-buenos-aires",
"code": "1-2-190-1065"
},
{
"country": 1,
"description": "General Pinto, General Pinto, Buenos Aires",
"localCode": "2-188-1477",
"seoUrl": "general-pinto-general-pinto-buenos-aires",
"code": "1-2-188-1477"
},
{
"country": 1,
"description": "General Belgrano, General Belgrano, Buenos Aires",
"localCode": "2-181-1443",
"seoUrl": "general-belgrano-general-belgrano-buenos-aires",
"code": "1-2-181-1443"
}
]