new cercalia.service.Isochrone(options)
Isochrone service constructor
Name | Type | Description |
---|---|---|
options |
cercaliax.service.IsochroneOptions |
Isochrone request options |
Members
-
address{string} {undefined}
-
Street name filter with house number
-
city{string} {undefined}
-
Town name filter (ctn)
-
cityId{string} {undefined}
-
Town code filter (ctc)
-
country{string} {undefined}
-
Country name filter (ctryn)
-
countryId{string} {undefined}
-
Country code filter (ctryc)
-
housenumber{number} {undefined}
-
House number filter (stnum)
-
inverse{boolean} {undefined}
-
If
false
, the calculation is from the center to outside. Iftrue
, the calculation is from outside to the center. Default valuefalse
. -
isolevels{number} {string}
-
Value, or incremental values list used for isochrone calculation (meters or miliseconds). Ex:
10000
,5000,10000,20000
. -
method{string} {undefined}
-
Calculation method. Por defecto:
convexhull
orconcavehull
. Default valueconvexhull
. -
municipality{string} {undefined}
-
Municipality name filter (munn)
-
municipalityId{string} {undefined}
-
Municipality code filter (munc)
-
position{cercalia.LonLat} {undefined}
-
Position of center to calculate isochrone request.
-
postalCode{string} {undefined}
-
Postal code filter (pcode)
-
region{string} {undefined}
-
Region name filter (regn)
-
regionId{string} {undefined}
-
Region code filter (regc)
-
street{string} {undefined}
-
Street name filter (stn)
-
streetId{string} {undefined}
-
Street code filter (stc)
-
subOrRegion{string} {undefined}
-
Region and Subregion name filter (rsn)
-
subregion{string} {undefined}
-
Subregion name filter (subregn)
-
subregionId{string} {undefined}
-
Subregion code filter (subregc)
-
weight{string} {undefined}
-
Type of search value. Possible values
distance
ortime
. Default valuedistance
Methods
-
calculate(callbackFn, callbackErrorFn)
-
Do isochrone request.
Name Type Description callbackFn
function callbackErrorFn
function | undefined optional -
clear()
-
Use null to all properties.
-
getClass(){string}
-
Returns the object type.
-
getResponse(){Object}
-
Returns the response once the 'isochrone' function finished
Returns:
response
-
setSearch(options)
-
Name Type Description options
cercaliax.service.Geocoding