-
Name Type Description optionsProximity options
Name Type Description namestring Name filter.
countryIdstring Country code filter.
countrystring Country name filter.
regionIdstring Region code filter.
regionstring Region name filter.
subregionIdstring Subregion code filter.
subregionstring Subregion name filter.
subOrRegionstring Region & Subregion name filter.
municipalityIdstring Municipality code filter.
municipalitystring Municipality name filter.
cityIdstring City code filter.
citystring City name filter.
postalCodestring Postal Code filter, requires country code.
streetIdstring Street code filter.
streetstring Street name filter.
street2string Second street name filter, for intersection search between main street and second street.
street2Idstring Second street code filter, for intersection search between main street and second street.
housenumbernumber House number filter.
roadNamestring Road name filter.
roadIdstring Road code filter.
kmnumber Mile marker filter (only for roads).
fullSearchstring Resolves all the candidate parameters.
numCandstring Maximum number of candidates per page.
posCandnumber First candidate position, starting from 0.
numnumber Maximum number of candidates.
wktstring Reference geometry.
srsstring Coordinates reference system.
xnumber X coordinate central reference.
ynumber Y coordinate central reference.
rqgestring Geo-entity level. Available values
adr|st|ct|mun|subreg|reg|ctry.rqpoicatsArray.<string> Array of POIs categories.
infoxmlboolean If a numeric value other than 0 is specified, it returns XML information associated with the Point of Interest.
weightnumber Proximity with real route distance. Values:
time,distance,money.inverseboolean Can be true or false. With a false value, the distances are calculated from the reference to the target. With a true value, the distances are calculated from the references to the targets. The default is false.
mosArray.<string> List of coordinates (type MO).
radnumber Maximum search radius (direct distance).
Extends
- module:cercaliagl/service/Service~Service
Methods
-
Clear search
-
Returns response to the query with function 'proximity'
Returns:
response
-
Make request and obtain data via callback function.
Name Type Description callbackFnfunction Callback Function
callbackFnErrorfunction Callback Function if there is an error
-
Set search. Same parameters as constructor
Name Type Description optionsProximity search options.
Name Type Description namestring Name filter.
countryIdstring Country code filter.
countrystring Country name filter.
regionIdstring Region code filter.
regionstring Region name filter.
subregionIdstring Subregion code filter.
subregionstring Subregion name filter.
subOrRegionstring Region & Subregion name filter.
municipalityIdstring Municipality code filter.
municipalitystring Municipality name filter.
cityIdstring City code filter.
citystring City name filter.
postalCodestring Postal Code filter, requires country code.
streetIdstring Street code filter.
streetstring Street name filter.
street2string Second street name filter, for intersection search between main street and second street.
street2Idstring Second street code filter, for intersection search between main street and second street.
housenumbernumber House number filter.
roadNamestring Road name filter.
roadIdstring Road code filter.
kmnumber Mile marker filter (only for roads).
fullSearchstring Resolves all the candidate parameters.
numCandstring Maximum number of candidates per page.
posCandnumber First candidate position, starting from 0.
numnumber Maximum number of candidates.
wktstring Reference geometry.
srsstring Coordinates reference system.
xnumber X coordinate central reference.
ynumber Y coordinate central reference.
rqgestring Geo-entity level. Available values
adr|st|ct|mun|subreg|reg|ctry.rqpoicatsArray.<string> Array of POIs categories.
infoxmlboolean If a numeric value other than 0 is specified, it returns XML information associated with the Point of Interest.
weightnumber Proximity with real route distance. Values:
time,distance,money.inverseboolean Can be true or false. With a false value, the distances are calculated from the reference to the target. With a true value, the distances are calculated from the references to the targets. The default is false.
mosArray.<string> List of coordinates (type MO).
radnumber Maximum search radius (direct distance).