POI Requests
Detailed documentation on how to perform POI suggestion requests using Cercalia’s Suggest API.
Requests
To obtain suggestions for Points of Interest (POIs), you can use the following parameters in your request:
Request Parameters
Parameter | Description | Example |
---|---|---|
key | Security key: For web applications, use the same KEY as for the Cercalia Maps API. For other applications (server, APP, …), request a KEY from Nexus. | your_api_key |
t | Text to search. Can contain street, number, locality, postal code, etc. The postal code acts as a limiter: if no matches are found, it expands the search to the entire municipality belonging to the postal code. | restaurant near central park |
getype | Filter by element types. Comma-separated list. Possible values: st for Streets, ct for Localities, poi for Points of Interest, all returns all types (equivalent to not sending the parameter). | poi |
nofuzzy | Enables exact matches only. Avoids “fuzzy” matching algorithms for more precise results. | true |
Optional Filters
Parameter | Description | Example |
---|---|---|
ctryc | Country code | ESP |
regc | Region code - community | ESPMAD |
subregc | Subregion code - province | ESP08 |
munc | Municipality code | ESP080193 |
rsc | Code for municipality/region/subregion/country (replaces munc, subregc, regc, and ctryc). | ESP,ESP08,ESPCAT |
rscp | Preferred code for municipality/region/subregion/country. Prioritizes results in specified regions over others. Can be combined with rsc for broader filtering. | `` |
rsclp | Preferred code for municipality/region/subregion/country. Prioritizes results in specified regions more softly than rscp . Can be combined with rsc for broader filtering. | `` |
pt | Coordinate “lat,lon” for proximity filtering. | 40.7128,-74.0060 |
d | Radial distance in kilometers for proximity filtering. Default is 25 km; minimum is 5 km. | 10 |
poicat | Filters POIs by category. Uses category codes, which will be detailed in a separate table. | C005,C043 |
Example Requests
Response
The response is returned in JSON format with UTF-8 encoding. It includes a list of POI suggestions matching the search criteria.
Example response
{
responseHeader:{
status:0,
QTime:23,
params:{
ctryc:"ESP",
key:"YOUR_API_KEY",
pois:"1",
t:"Museo del Prado Madrid"
}
},
response:{
numFound:3,
start:0,
maxScore:26.154898,
docs:[
{
id:"PESP724009001959912",
categoria_id:"C037",
poi_nombre:"Museo Nacional del Prado",
codigo_postal:"28014",
localidad_nombre:"Madrid",
municipio_id:"ESP280796",
municipio_nombre:"Madrid",
provincia_id:"ESP28",
provincia_nombre:"Madrid",
comunidad_id:"ESPMAD",
comunidad_nombre:"Comunidad de Madrid",
pais_id:"ESP",
pais_nombre:"España",
direccion:"Paseo del Prado, 28014 Madrid",
calle_descripcion:"Paseo del Prado",
puntuacio:1,
coord:"40.414856,-3.6925297",
lang:"SPA",
_version_:1645647790034911200,
score:26.154898
},
{
id:"PESP724009000642061",
categoria_id:"C030",
poi_nombre:"Museo del Prado",
codigo_postal:"28014",
localidad_nombre:"Madrid",
municipio_id:"ESP280796",
municipio_nombre:"Madrid",
provincia_id:"ESP28",
provincia_nombre:"Madrid",
comunidad_id:"ESPMAD",
comunidad_nombre:"Comunidad de Madrid",
pais_id:"ESP",
pais_nombre:"España",
direccion:"Paseo del Prado, 28014 Madrid",
calle_descripcion:"Paseo del Prado",
tel:"+(34)-(913)-302800",
mail:"museo.nacional@museodelprado.es",
web:"www.museoprado.mcu.es",
puntuacio:0.9,
coord:"40.413776,-3.6924677",
lang:"SPA",
_version_:1645647790035959800,
score:23.539408
},
{
id:"PESPLU01N2945",
categoria_id:"LU01",
poi_nombre:"Jardines del Museo del Prado",
localidad_nombre:"Madrid",
municipio_id:"ESP280796",
municipio_nombre:"Madrid",
provincia_id:"ESP28",
provincia_nombre:"Madrid",
comunidad_id:"ESPMAD",
comunidad_nombre:"Comunidad de Madrid",
pais_id:"ESP",
pais_nombre:"España",
puntuacio:0.8,
coord:"40.414196,-3.6926923",
_version_:1645647795570344000,
score:20.923918
}
]
}
}
List of POI Categories (*)
(*) poicat: If no POI categories are specified, the system will only search for suggestions within the default categories marked in the category table. If you want to search in all categories or specific ones, you must indicate them using this parameter.
Code | Description | Included in Default Search |
---|---|---|
C012 | Public Administration | Yes |
C005 | Airport | Yes |
C037 | Major Tourist Attraction | Yes |
C023 | Camping | Yes |
C036 | Casino | Yes |
C010 | Shopping Center | Yes |
C043 | Convention Center | Yes |
D00ESC | School | Yes |
C004 | Train Station | Yes |
C015 | Stadium / Sports Center | Yes |
C046 | Golf Course | Yes |
C009 | Hospital / Clinic | Yes |
C013 | Hotel | Yes |
C030 | Museum | Yes |
C112 | Public Transport Stop (Uncategorized) | Yes |
C045 | Amusement Park | Yes |
C044 | Marina | Yes |
C031 | Theater | Yes |
C016 | Airport Access | Yes |
C006 | Ferry Terminal | Yes |
C027 | University | Yes |
C048 | Zoo | Yes |
C076 | Bed & Breakfast | Yes |
C047 | Library | Yes |
D00CAP | Primary Care Center (Spain only) | Yes |
C032 | Sports Center | Yes |
C025 | Cinema | Yes |
C070 | Ski Station | Yes |
C110 | Industry | Yes |
C035 | Place of Worship | Yes |
C107 | Market | Yes |
C041 | Opera | Yes |
C074 | Water Park | Yes |
C072 | Botanical Garden | Yes |
C075 | Wildlife Park | Yes |
C039 | Park and Recreational Area | Yes |
C038 | Ice Rink | Yes |
C022 | Beach | Yes |
C050 | Industrial Zone | Yes |
C077 | Resort Hotel | Yes |
C042 | Concert Hall | Yes |
C079 | Military Airport | No |
C105 | Vehicle Rental | No |
C007 | Parking Lot | No |
C108 | Truck Parking | No |
C002 | Rest Area | No |
C003 | Service Area | No |
C106 | Bank | No |
C080 | Airfield | No |
C029 | Tourist Information Center | No |
C033 | Police Station | No |
C018 | Embassy | No |
C026 | Pharmacy | No |
C001 | Gas Station | No |
D00GUA | Nursery (Spain) | No |
C109 | Car Wash | No |
C049 | Subway | No |
C040 | Courthouse | No |
C083 | Bus Stop | No |
C081 | Intercity Bus Stop | No |
C051 | Tram Stop | No |
D00BUS | Urban Bus Stops | No |
C111 | Vehicle Rental Parking | No |
C019 | Border Crossing | No |
C020 | Mountain Peak | No |
C034 | Swimming Pool | No |
C017 | Mountain Pass | No |
D104 | EV Charging Points | No |
C014 | Restaurant | No |
C078 | Supermarket & Hypermarket | No |
C028 | Mechanical Workshop | No |
D00TRA | Trams (Spain) | No |
C056 | Car Sales | No |