Creates a new Cercalia client instance.
The Cercalia API configuration.
Get weather forecast for a location
Example from docs: https://lb.cercalia.com/services/v2/json?cmd=prox&rqpoicats=D00M05&mocs=gdd&mo=41.39818,2.1490287&key=YOUR_API_KEY
Location coordinate
Weather forecast data
ProtectedrequestExecutes a generic request to the Cercalia API.
Query parameters for the API request.
Human-readable name for logging and debugging.
OptionalbaseUrl: stringOptional override for the base API URL.
A promise resolving to the parsed API response.
Get POIs along a route
Example from docs: https://lb.cercalia.com/services/v2/json?cmd=geom&routeweight=time&tolerance=5&routeid=2767920,2778988|0.6167333,0.6414299&getpoicats=C001&buffer=50&key=YOUR_API_KEY
Route and search options
Array of POIs along the route
Get POIs inside a map extent
Example from docs: https://lb.cercalia.com/services/v2/json?cmd=map&map=0&extent=42.144102962,-0.414886914|42.139342832,-0.407628526&cs=gdd&getpoicats=D00GAS&key=YOUR_API_KEY
Map extent (upper-left and lower-right corners)
Search options
Array of POIs in the extent
Get POIs inside a polygon
Example from docs: https://lb.cercalia.com/services/v2/json?cmd=prox&rqpoicats=C001&cs=4326&wkt=POLYGON((2.149028778076172 41.39586980544921,...))&key=YOUR_API_KEY
Polygon and category options
Array of POIs inside the polygon
Get the nearest POIs by straight-line distance
Example from docs: https://lb.cercalia.com/services/v2/json?cmd=prox&mo=40.3691,-3.589&mocs=gdd&rqpoicats=C001&num=2&rad=10000&key=YOUR_API_KEY
Search center coordinate (lat, lng)
Search options (categories, limit, radius)
Array of POI results ordered by proximity
Get the nearest POIs using routing distance/time
Example from docs: https://lb.cercalia.com/services/v2/json?cmd=prox&mo=40.3691,-3.589&rqpoicats=C001&num=2&weight=time&mocs=gdd&inverse=0&key=YOUR_API_KEY
Search center coordinate
Search options including routing weight
Array of POI results with routing info
PoiService - Points of Interest search using Cercalia API
Supports multiple search modes:
See
https://docs.cercalia.com/docs/cercalia-webservices/points-of-interest/