Namespace: service

cercalia.service


Classes

Autocomplete
Distance
Geocoding
GeometryEntity
Isochrone
Pois
Proximity
ReverseGeocoding
Routing
Service
StaticMap

Methods

cercalia.service.ajax(ajaxParams){XMLHttpRequest}

src/cercalia/service/service.js, line 24
Name Type Description
ajaxParams

Ajax Parameters.

Name Type Description
url string

URL. If not defined, default value is value of cercalia.servers.servlet constant. Required.

method string | undefined

HTTP method. Default GET.

headers Object | undefined

HTTP Headers for Ajax request.

postContent Object | string | undefined

Post data

timeout number | undefined

Ajax timeout request.

callbackFn function | undefined

Callback function. First param is JSON data.

callbackFnError function | undefined

Callback error function

Returns:
XMLHttpRequest