Points of Interest (POIs)

Show POIs on the map, get the POIs along a route, weather info, gas stations, etc.

Web services

POIs API documentation, available via HTTP-JSON/XML service.

URL base service:

  • HTTP requests in GET or POST
  • Response in JSON / XML format

Get the nearest POIs

Request

Example:

https://lb.cercalia.com/services/json?cmd=prox&mo=40.3691,-3.589&mocs=gdd&rqpoicats=C001&num=2&rad=10000&key=YOUR_API_KEY

Where:

ParamaeterDescription
moSearch center, format: lat, lon
mocsgdd Coordinate system (gdd = geographical - lat, long)
rqpoicatsList of POI categories (separated by commas) to be searched, ordered by proximity
numMaximum number of points to return (max: 1000)
radMaximum radius (in meters)

Response

{
    "cercalia": {
        "cmd": "prox",
        "version": "1",
        "proximity": {
            "center": "-3.58900312,40.36909901",
            "num": "2",
            "rad": "10000",
            "type": "poi",
            "poilist": {
                "num": "2",
                "poi": [
                    {
                        "category_id": "C001",
                        "dist": "176",
                        "geometry": "P",
                        "id": "C001#724007000492000",
                        "pos": "1",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol SuperCOR Stop&Go La Superestación"
                        },
                        "info": {
                            "$valor": "Repsol SuperCOR Stop&Go La Superestación. 28051 Madrid. Tel: +(34)-(914)-860484"
                        },
                        "ge": {
                            "street": {
                                "id": "UNKNOWN"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Madrid"
                            },
                            "municipality": {
                                "id": "ESP280796",
                                "$valor": "Madrid"
                            },
                            "subregion": {
                                "id": "ESP28",
                                "$valor": "Madrid"
                            },
                            "region": {
                                "id": "ESPMAD",
                                "$valor": "Comunidad de Madrid"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "-3.58801498",
                            "y": "40.36769732"
                        }
                    },
                    {
                        "category_id": "C001",
                        "dist": "241",
                        "geometry": "P",
                        "id": "C001#724009002370834",
                        "pos": "2",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "ÁREA 117"
                        },
                        "info": {
                            "$valor": "ÁREA 117. Avenida Del Mediterráneo, Km11.9, 28051 Madrid. Tel: +(34)-(692)-982944. Web: www.area117.es"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "Km11.9"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Avenida Del Mediterráneo"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Madrid"
                            },
                            "municipality": {
                                "id": "ESP280796",
                                "$valor": "Madrid"
                            },
                            "subregion": {
                                "id": "ESP28",
                                "$valor": "Madrid"
                            },
                            "region": {
                                "id": "ESPMAD",
                                "$valor": "Comunidad de Madrid"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "-3.58657767",
                            "y": "40.36795155"
                        }
                    }
                ]
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Where:

ParameterDescription
distProjected straight-line distance (center point vs POI), in meters
posProximity order (from closest to least)
namePOI name
infoPOI additional info

Get the neares POIs, using routing

Request

Example:

https://lb.cercalia.com/services/json?cmd=prox&mo=40.3691,-3.589&rqpoicats=C001&num=2&&weight=time&mocs=gdd&inverse=0&key=YOUR_API_KEY

Where:

ParameterDescription
moSearch center, format: lat, lon
mocsgdd Coordinate system (gdd = geographical - lat, long)
rqpoicatsList of POI categories (separated by commas) to be searched, ordered by proximity
numMaximum number of points to return (optional)
radMaximum radius, in meters (optional)
weightRoute type:
time(faster)
distance(shortest)
money(faster, avoiding tolls)
realtime(quickest, considering real time traffic data)
iweightrealtime Use this parameter to obtain the time of the route, based on the current traffic state.
inverseIf 0 Route times are from the center to the point list, 1 Route times are from the list of points to the center

Routing based on departure time:

ParameterDescription
weightRoute type:
sptime(quickest, based on departure time)
spmoney(quickest, based on departure time and avoiding toll roads)
departuretimeDeparture date and time, in ISO 8601 format. UTC time example: 2019-10-16T07:30:12Z. Mandatory to include the &weight= parameter.

Response

{
    "cercalia": {
        "cmd": "prox",
        "version": "1",
        "proximity": {
            "center": "-3.58900312,40.36909901",
            "inverse": "0",
            "num": "2",
            "type": "poi",
            "weight": "time",
            "poilist": {
                "num": "2",
                "poi": [
                    {
                        "category_id": "C001",
                        "dist": "241",
                        "geometry": "P",
                        "id": "C001#724009002370834",
                        "pos": "1",
                        "routedist": "245",
                        "routerealtime": "54711",
                        "routetime": "54711",
                        "routeweight": "54711",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "ÁREA 117"
                        },
                        "info": {
                            "$valor": "ÁREA 117. Avenida Del Mediterráneo, Km11.9, 28051 Madrid. Tel: +(34)-(692)-982944. Web: www.area117.es"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "Km11.9"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Avenida Del Mediterráneo"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Madrid"
                            },
                            "municipality": {
                                "id": "ESP280796",
                                "$valor": "Madrid"
                            },
                            "subregion": {
                                "id": "ESP28",
                                "$valor": "Madrid"
                            },
                            "region": {
                                "id": "ESPMAD",
                                "$valor": "Comunidad de Madrid"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "-3.58657767",
                            "y": "40.36795155"
                        }
                    },
                    {
                        "category_id": "C001",
                        "dist": "176",
                        "geometry": "P",
                        "id": "C001#724007000492000",
                        "pos": "2",
                        "routedist": "5985",
                        "routerealtime": "385184",
                        "routetime": "385184",
                        "routeweight": "385184",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol SuperCOR Stop&Go La Superestación"
                        },
                        "info": {
                            "$valor": "Repsol SuperCOR Stop&Go La Superestación. 28051 Madrid. Tel: +(34)-(914)-860484"
                        },
                        "ge": {
                            "street": {
                                "id": "UNKNOWN"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Madrid"
                            },
                            "municipality": {
                                "id": "ESP280796",
                                "$valor": "Madrid"
                            },
                            "subregion": {
                                "id": "ESP28",
                                "$valor": "Madrid"
                            },
                            "region": {
                                "id": "ESPMAD",
                                "$valor": "Comunidad de Madrid"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "-3.58801498",
                            "y": "40.36769732"
                        }
                    }
                ]
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Where:

ParameterDescription
distProjected straight-line distance (center point vs POI), in meters.
routedistRoute distance (center point vs POI), in meters.
routetimeRoute time (center point vs POI), in milliseconds.

Get the POIs along a route

Request

Example:

https://lb.cercalia.com/services/json?cmd=geom&routeweight=time&tolerance=5&routeid=2767920,2778988|0.6167333,0.6414299&getpoicats=C001&buffer=50&key=YOUR_API_KEY

Where:

ParameterDescription
routeidRoute ID, from a cmd=route request (route IDs are available during some hours).
routeweightRoute type used in the previous route request (cmd=route). Ex: time.
getpoicatsPOIs categories to search.
bufferBuffer distance to be used in the POIs search, in meters (example: 50).
toleranceRoute polyline simplification, in meters. Default: 100 meters.

Response

{
    "cercalia": {
        "cmd": "geom",
        "version": "1",
        "getpoicats": {
            "poicats": {
                "poicat": [
                    {
                        "$valor": "C001"
                    }
                ]
            },
            "poilist": {
                "num": "1",
                "poi": [
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007947185",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "BP Rio Grande"
                        },
                        "info": {
                            "$valor": "BP Rio Grande. 29570 Cártama. Tel: +(34)-(952)-118249. Web: www.bp.com"
                        },
                        "ge": {
                            "street": {
                                "id": "UNKNOWN"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Cártama"
                            },
                            "municipality": {
                                "id": "ESP290385",
                                "$valor": "Cártama"
                            },
                            "subregion": {
                                "id": "ESP29",
                                "$valor": "Málaga"
                            },
                            "region": {
                                "id": "ESPAND",
                                "$valor": "Andalucía"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "-4.70090185",
                            "y": "36.72014909"
                        }
                    }
                ]
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Get the POIs inside a map extension

Request

Example:

https://lb.cercalia.com/services/json?cmd=map&map=0&extent=42.144102962,-0.414886914|42.139342832,-0.407628526&cs=gdd&getpoicats=D00GAS&key=YOUR_API_KEY

Where:

ParameterDescription
map0/1 No include / include a static map (image). If only POIs list is needed, use map=0 for faster response.
csgdd Coordinate system (gdd = geographical - lat, long).
extentMap extension: Y,X
getpoicatsPOIs categories to search.

Response

{
    "cercalia": {
        "cmd": "map",
        "version": "1",
        "proximity": {
            "op": "3"
        },
        "map": {
            "smap": "0",
            "style": "default",
            "img": {
                "center": "-0.41125772,42.14172294",
                "format": "gif",
                "height": "250",
                "href": "",
                "scale": "3",
                "width": "350",
                "extent": {
                    "coord": [
                        {
                            "x": "-0.42165123",
                            "y": "42.14724499"
                        },
                        {
                            "x": "-0.40085523",
                            "y": "42.13619373"
                        }
                    ]
                }
            },
            "label": {
                "op": "1",
                "pt": "-0.41125772,42.14172294"
            },
            "poicats": {},
            "shapes": {},
            "getpoicats": {
                "poicat": [
                    {
                        "$valor": "D00GAS"
                    }
                ],
                "poilist": {
                    "poi": [
                        {
                            "category_id": "D00GAS",
                            "geometry": "P",
                            "id": "D00GAS#D00IDEESS1314I",
                            "subcategory_id": "REP",
                            "name": {
                                "$valor": "REPSOL"
                            },
                            "info": {
                                "$valor": "I|AVENIDA PAZ LA, 33|HUESCA|Huesca|HUESCA|22004|L-D: 24H|P|1.609|1.469|||||0.0||0.0||2024-12-18T07:15:12"
                            },
                            "ge": {
                                "city": {
                                    "id": "UNKNOWN",
                                    "$valor": "Huesca"
                                },
                                "municipality": {
                                    "id": "ESP221259",
                                    "$valor": "Aragón"
                                },
                                "subregion": {
                                    "id": "ESP22",
                                    "$valor": "Huesca"
                                },
                                "region": {
                                    "id": "ESPARA",
                                    "$valor": "Aragón"
                                },
                                "country": {
                                    "id": "ESP",
                                    "$valor": "España"
                                }
                            },
                            "coord": {
                                "x": "-0.41300045",
                                "y": "42.14263886"
                            },
                            "pixels": {
                                "x": "146",
                                "y": "105"
                            }
                        },
                        {
                            "category_id": "D00GAS",
                            "geometry": "P",
                            "id": "D00GAS#D00IDEESS1286D",
                            "subcategory_id": "REP",
                            "name": {
                                "$valor": "REPSOL"
                            },
                            "info": {
                                "$valor": "D|CALLE COSO ALTO, 65|HUESCA|Huesca|HUESCA|22003|L-V: 07:00-15:00|P|1.589|1.459|||||0.0||0.0||2024-12-18T07:15:12"
                            },
                            "ge": {
                                "city": {
                                    "id": "UNKNOWN",
                                    "$valor": "Huesca"
                                },
                                "municipality": {
                                    "id": "ESP221259",
                                    "$valor": "Aragón"
                                },
                                "subregion": {
                                    "id": "ESP22",
                                    "$valor": "Huesca"
                                },
                                "region": {
                                    "id": "ESPARA",
                                    "$valor": "Aragón"
                                },
                                "country": {
                                    "id": "ESP",
                                    "$valor": "España"
                                }
                            },
                            "coord": {
                                "x": "-0.41050314",
                                "y": "42.14119478"
                            },
                            "pixels": {
                                "x": "187",
                                "y": "136"
                            }
                        }
                    ]
                }
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Get the POIs inside a map extension, with zoom filtering

Request

Example:

https://lb.cercalia.com/services/json?cmd=map&map=0&extent=42.144102962,-0.414886914|42.139342832,-0.407628526&cs=gdd&mocs=gdd&gpoicats=D00GAS&key=YOUR_API_KEY

Where:

  • map=0/1 No include / include a static map (image). If only need POIs list, use map=0 for faster response
  • cs=gdd Coordinate system (gdd = geographical - lat, long)
  • extent= map extension: Y,X|Y,X. Upper-left corner | Lower-right corner
  • getpoicats= POIs categories to search
  • gridsize= (optional) Grid size used for POIs zoom filtering (higher value = more filtering).

Response

{
    "cercalia": {
        "cmd": "map",
        "version": "1",
        "proximity": {
            "op": "3"
        },
        "map": {
            "smap": "0",
            "style": "default",
            "img": {
                "center": "-0.41125772,42.14172294",
                "format": "gif",
                "height": "250",
                "href": "",
                "scale": "3",
                "width": "350",
                "extent": {
                    "coord": [
                        {
                            "x": "-0.42165123",
                            "y": "42.14724499"
                        },
                        {
                            "x": "-0.40085523",
                            "y": "42.13619373"
                        }
                    ]
                }
            },
            "label": {
                "op": "1",
                "pt": "-0.41125772,42.14172294"
            },
            "poicats": {},
            "shapes": {},
            "gpoicats": {
                "gridsize": "100",
                "poicat": [
                    {
                        "$valor": "D00GAS"
                    }
                ],
                "poilist": {
                    "poi": [
                        {
                            "category_id": "D00GAS",
                            "id": "D00GAS#D00IDEESS1314I",
                            "subcategory_id": "REP",
                            "name": {
                                "$valor": "REPSOL"
                            },
                            "info": {
                                "$valor": "I|AVENIDA PAZ LA, 33|HUESCA|Huesca|HUESCA|22004|L-D: 24H|P|1.609|1.469|||||0.0||0.0||2024-12-18T07:15:12"
                            },
                            "ge": {
                                "municipality": {
                                    "id": "ESP221259"
                                }
                            },
                            "coord": {
                                "x": "-0.41300045",
                                "y": "42.14263886"
                            },
                            "pixels": {
                                "x": "146",
                                "y": "105"
                            }
                        },
                        {
                            "category_id": "D00GAS",
                            "id": "D00GAS#D00IDEESS1286D",
                            "subcategory_id": "REP",
                            "name": {
                                "$valor": "REPSOL"
                            },
                            "info": {
                                "$valor": "D|CALLE COSO ALTO, 65|HUESCA|Huesca|HUESCA|22003|L-V: 07:00-15:00|P|1.589|1.459|||||0.0||0.0||2024-12-18T07:15:12"
                            },
                            "ge": {
                                "municipality": {
                                    "id": "ESP221259"
                                }
                            },
                            "coord": {
                                "x": "-0.41050314",
                                "y": "42.14119478"
                            },
                            "pixels": {
                                "x": "187",
                                "y": "136"
                            }
                        }
                    ]
                }
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Get the POIs inside a polygon

Request

Example:

https://lb.cercalia.com/services/json?cmd=prox&rqpoicats=C001&cs=4326&wkt=POLYGON((2.149028778076172%2041.39586980544921,2.146625518798828%2041.41930231731321,2.1816444396972656%2041.41981722266227,2.1813011169433594%2041.398187683195694,2.149028778076172%2041.39586980544921))&key=YOUR_API_KEY

Where:

ParameterDescription
cs4326 Coordinate system (gdd = 4326 -> lat, long).
wktPolygon, in WKT format.
rqpoicatsPOIs categories to search.

Response

    "cercalia": {
        "cmd": "prox",
        "version": "1",
        "proximity": {
            "buffer": "0.0",
            "cs": "4326",
            "tolerance": "0.0",
            "type": "poi",
            "wkt": "POLYGON((2.149028778076172 41.39586980544921,2.146625518798828 41.41930231731321,2.1816444396972656 41.41981722266227,2.1813011169433594 41.398187683195694,2.149028778076172 41.39586980544921))",
            "poilist": {
                "num": "9",
                "poi": [
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007934310",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol Virgen Montserrat"
                        },
                        "info": {
                            "$valor": "Repsol Virgen Montserrat. Avinguda de la Mare de Déu de Montserrat, 87, 08024 Barcelona. Tel: +(34)-(932)-846895. Web: www.repsol.com"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "87"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Avinguda de la Mare de Déu de Montserrat"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.16697003",
                            "y": "41.41551638"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009033832084",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Cepsa Gaudí"
                        },
                        "info": {
                            "$valor": "Cepsa Gaudí. Avinguda de Gaudí, 1, 08025 Barcelona. Tel: +(34)-(934)-368678. Web: www.repsol.com"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "1"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Avinguda de Gaudí"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.17421943",
                            "y": "41.40487843"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007937627",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Galp Sant Antoni Maria Claret"
                        },
                        "info": {
                            "$valor": "Galp Sant Antoni Maria Claret. Carrer de Sant Antoni Maria Claret, 2, 08041 Barcelona. Tel: +(34)-(934)-369116. Web: www.galpenergia.com"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "2"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Carrer de Sant Antoni Maria Claret"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.18021119",
                            "y": "41.41584773"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007944045",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Cerdeña"
                        },
                        "info": {
                            "$valor": "Cerdeña. Carrer de Sardenya, 225, 08013 Barcelona"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "225"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Carrer de Sardenya"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.1773276",
                            "y": "41.40014387"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007931669",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol San Juan-Diagonal"
                        },
                        "info": {
                            "$valor": "Repsol San Juan-Diagonal. Plaça del Mossèn Jacint Verdaguer, 08037 Barcelona. Web: www.repsol.com"
                        },
                        "ge": {
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Plaça del Mossèn Jacint Verdaguer"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.16966497",
                            "y": "41.3993322"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009005184853",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol Legalitat"
                        },
                        "info": {
                            "$valor": "Repsol Legalitat. Carrer de la Legalitat, 59, 08024 Barcelona. Tel: +(34)-(932)-195641. Web: www.repsol.com"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "59"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Carrer de la Legalitat"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.16166098",
                            "y": "41.40873345"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009034307011",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol Piserra"
                        },
                        "info": {
                            "$valor": "Repsol Piserra. Carrer de València, 503, 08013 Barcelona. Tel: +(34)-(932)-326760. Web: www.disagrupo.es"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "503"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Carrer de València"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.17964526",
                            "y": "41.40523689"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007938733",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Gratsa"
                        },
                        "info": {
                            "$valor": "Gratsa. Passeig de Maragall, 33, 08041 Barcelona. Tel: +(34)-(934)-547418"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "33"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Passeig de Maragall"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.18046272",
                            "y": "41.41496187"
                        }
                    },
                    {
                        "category_id": "C001",
                        "geometry": "P",
                        "id": "C001#724009007939633",
                        "subcategory_id": "-1",
                        "name": {
                            "$valor": "Repsol GEDS"
                        },
                        "info": {
                            "$valor": "Repsol GEDS. Carrer de Provença, 309, 08037 Barcelona. Tel: +(34)-(934)-580811. Web: www.repsol.com"
                        },
                        "ge": {
                            "housenumber": {
                                "$valor": "309"
                            },
                            "street": {
                                "id": "UNKNOWN",
                                "$valor": "Carrer de Provença"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.16643104",
                            "y": "41.39866932"
                        }
                    }
                ]
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Weather forecast location

Get the meteo forecast, from a coordinate. The weather forecast is available for all the world, but with more or less density depending on the country.

Request

Example:

https://lb.cercalia.com/services/json?cmd=prox&rqpoicats=D00M05&mocs=gdd&mo=41.39818,2.1490287&key=YOUR_API_KEY

Where:

ParameterDescription
mocsgdd Coordinate system (gdd = geographical - lat,lon).
moSearch center, format: lat,lon
rqpoicatsD00M05 Meteo info category

Response

{
    "cercalia": {
        "cmd": "prox",
        "version": "1",
        "proximity": {
            "center": "2.14903067,41.39818231",
            "num": "1",
            "type": "poi",
            "poilist": {
                "num": "1",
                "poi": [
                    {
                        "category_id": "D00M05",
                        "dist": "2082",
                        "geometry": "P",
                        "id": "D00M05#D00M0508019",
                        "pos": "1",
                        "subcategory_id": "012",
                        "name": {
                            "$valor": "Barcelona"
                        },
                        "info": {
                            "$valor": "2024-12-18T06:26:07|2024-12-18|0|0|||12|12|5|15|16|7|2024-12-19|10|0|||13|12|20|30|20|11|2024-12-20|0|0|||12|12|16|8|2024-12-21|15|1200|13|15|7|2024-12-22|0||11|16|10|2024-12-23|20|1000|13|16|9"
                        },
                        "ge": {
                            "street": {
                                "id": "UNKNOWN"
                            },
                            "city": {
                                "id": "UNKNOWN",
                                "$valor": "Barcelona"
                            },
                            "municipality": {
                                "id": "ESP080193",
                                "$valor": "Barcelona"
                            },
                            "subregion": {
                                "id": "ESP08",
                                "$valor": "Barcelona"
                            },
                            "region": {
                                "id": "ESPCAT",
                                "$valor": "Catalunya"
                            },
                            "country": {
                                "id": "ESP",
                                "$valor": "España"
                            }
                        },
                        "coord": {
                            "x": "2.1699165",
                            "y": "41.38792035"
                        }
                    }
                ]
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}

Where:

ParameterDescription
<name>Nearest locality name, with meteo info
<info>Meteo forecast, with this format:
Day +1: <day **date**> <chance of precipitation time="00-12"> <chance of precipitation time="12-24"> <snow_level time="00-12"> <snow_level time="12-24"> <sky_conditions time="00-12"> (1) <sky_conditions time="12-24"> (1) <wind><speed time="00-12"> <wind><speed time="12-24"> <temperature><max> <temperature><min>
Day +2: <day **date**> <chance of precipitation time="00-12"> <chance of precipitation time="12-24"> <snow_level time="00-12"> <snow_level time="12-24"> <sky_conditions time="00-12"> (1) <sky_conditions time="12-24"> (1) <wind><speed time="00-12"> <wind><speed time="12-24"> <temperature><max> <temperature><min>
Day +3: <day **date**> <chance of precipitation time="00-12"> <chance of precipitation time="12-24"> <snow_level time="00-12"> <snow_level time="12-24"> <sky_conditions time="00-12"> (1) <sky_conditions time="12-24"> (1) <temperature><max> <temperature><min>
Day +4: <day **date**> <chance of precipitation> <snow_level> <sky_conditions>(1) <temperature><max> <temperature><min>
Day +5: <day **date**> <chance of precipitation> <snow_level> <sky_conditions>(1) <temperature><max> <temperature><min>
Day +6: <day **date**> <chance of precipitation> <snow_level> <sky_conditions>(1) <temperature><max> <temperature><min>

(1) Sky conditions values:

IconIDDescription
11Clear
12A little bit cloudy
13Cloudy intervals
14Cloudy
15Very cloudy
16Very cloudy
17Thin clouds
23Cloudy intervals with rain
24Cloudy with rain
25Very cloudy with rain
26Cloudy with rain
33Cloudy intervals with snow
34Cloudy with snow
35Very cloudy with snow
36Cloudy with snow
43Cloudy intervals with rain
44Cloudy with little rain
45Very cloudy with little rain
46Cloudy with little rain
51Cloudy intervals with storm
52Cloudy with storm
53Very cloudy with storm
54Cloudy with storm
61Cloudy intervals with storm and little rain
62Cloudy with storm and little rain
63Very cloudy with storm and little rain
64Cloudy with storm and little rain
71Cloudy intervals with little snow
72Cloudy with little snow
73Very cloudy with little snow
74Cloudy with little snow

Example:

meteo implementation

POIs categories

POIs categories codes:

CategoryCode
Gas stationsC001
Gas station with daily updated price (only Spain)D00GAS
Compressed Natural Gas Gas Stations - CNG (only Spain)D00GNC
Electric vehicle charging pointsD104
Parking & rest areaC002
Service areaC003
Train stationC004
Airport and TerminalsC005,C016
Ferry terminalC006
ParkingC007
Car salesC008
HospitalC009
Primary Assistance Center (only Spain)D00CAP
MallC010
Post OfficeC011
Public administration buildingC012
HotelC013
RestaurantC014
StadiumC015
Airport accessC016
Mountain passC017
EmbassyC018
Border crossingC019
Mountain peakC020
Panoramic viewC021
BeachC022
CampingC023
ATMC024
CinemaC025
PharmacyC026
University / SchoolC027
Mechanical workshopC028
Tourist information centerC029
MuseumC030
TheaterC031
Sports CenterC032
Police stationC033
PoolC034
Cult placeC035
CasinoC036
Important tourist attractionC037
Ice skating rinkC038
Park and recreation areaC039
CourthouseC040
OperaC041
Concert hallC042
Convention CenterC043
Leisure port, sports portC044
Theme parkC045
Golf courseC046
LibraryC047
ZooC048
SubwayC049
Industrial EstateC050
Tram stopC051
Windshield workshopC052
Sale and repair of tiresC053
Motorcycle workshopC054
Truck workshopC055
Car dealershipC056
Motorcycle dealerC057
Yacht dealerC058
Recreational Vehicle DealerC059
Truck dealerC060
Van dealerC061
Coach dealerC062
Snow vehicle DealerC063
Company (transport and logistics)C064
Company (health)C065
Company (Mining & Oil & Gas)C066
Company (construction)C067
Company (companies and offices)C068
Coastal parkC069
Ski resortC070
Company (bus and taxi services)C071
Botanic ParkC072
Water parkC074
Wildlife parkC075
Bed & BreakfastC076
Hotel resortC077
Supermarket & HypermarketC078
Military airportC079
AirfieldC080
Interurban BUS stopC081
Taxi stopC082
Coach stopC083
Store (bookstore)C084
Store (CD’s, DVD & Videos)C085
Shop (clothing & accessories)C086
Store (convenience items)C087
Store (computers, electronics, photography, etc)C088
Store (real estate)C089
Shop (outlet)C090
Shop (florist)C091
Shop (food)C092
Shop (gifts, souvenirs)C093
Tent (house, garden)C094
Shop (jewelry)C095
KioskC096
Shop (optical)C097
Shop (sports equipment)C098
Store (toy store)C099
Shop (travel agency)C100
Tent (construction material)C101
Store (other)C102
Store (mobile phone)C103
Rent a carC105
BankC106
MarketC107
Truck parkingC108
Car washC109
IndustryC110
Car rental parkingC111
Public transport stop, uncategorizedC112
Tramways (only Spain)D00TRA
Urban BUS stopsD00BUS
Nurseries (only Spain)D00GUA
Early childhood education schools (only Spain)D00ESC
Primary schools (only Spain)D00ESC
Secondary and Baccalaureate Schools (only Spain)D00ESC
Professional development schools (only Spain)D00ESC
Other types of schools (only Spain)D00ESC
Speed cams (only Spain)D00RAD
Dangerous road points (only Spain)D00PNG
Traffic camerasD00CAM
Last modified December 19, 2024: feat: markdown api http all (d8c23c1)