Class: GeometryEntity

cercalia.service.GeometryEntity


new cercalia.service.GeometryEntity()

src/cercalia/service/geometryentity.js, line 13

GeometryEntity service constructor

Extends

Methods

getClass(){string} inherited

src/cercalia/object.js, line 41
Returns:
Get Class name of object

getDistrictGeometry(districtId, callbackFn)

src/cercalia/service/geometryentity.js, line 75

Get district geometry in WKT format.

Name Type Description
districtId string

District id.

callbackFn function

Callback function to parse data server response.

getId(){string} inherited

src/cercalia/object.js, line 33
Returns:
Unique Id.

getMunicipalityGeometry(municipalityId, callbackFn)

src/cercalia/service/geometryentity.js, line 54

Get municipality geometry in WKT format.

Name Type Description
municipalityId string

Municipality.

callbackFn function

Callback function to parse data server response.

getPostalCodeGeometry(countryId, postalCode, callbackFn)

src/cercalia/service/geometryentity.js, line 32

Get postal code geometry in WKT format.

Name Type Description
countryId string

Country Id.

postalCode string

Postal code.

callbackFn function

Callback Function to parse data server response.

getResponse(){cercaliax.GeometryEntityResult|null}

src/cercalia/service/geometryentity.js, line 106
Returns:
Response

getWKT(){string|null}

src/cercalia/service/geometryentity.js, line 114
Returns:
WKT last geometry requested.